Increase railties compatability with Rails 4