Created by: avakarev
Some goodness for #908: Fixing deprecation warnings after upgrading to rails 3.2.5