These 2 lines have been removed in Rails 4 and replaced. Please check the railsdiff: http://railsdiff.org/diff/v3.2.17/v4.0.4/