Fix railtie call for Rails 4.