Fix railtie.rb for Rails 4.1