Deprecation warnings after changing to Rails 5/beta1

Wanted to document this somewhere.

  • If you want to use Rails 5.0.0.beta1
  • and you use rails/turbolinks (current released version/2.5.3)
  • and you are getting these messages:
    DEPRECATION WARNING: alias_method_chain is deprecated. Please, use
    Module#prepend instead. From module, you can access the original
    method using super. (called from block in tsort_each at
    …/.rvm/rubies/ruby-2.3.0-preview2/lib/ruby/2.3.0/tsort.rb:228)

DEPRECATION WARNING: before_filter is deprecated and will be removed
in Rails 5.1. Use before_action instead. (called from <top (required)>
at …/app/controllers/application_controller.rb:1)

  • then if you change you Gemfile to:
    gem ‘turbolinks’, github: ‘rails/turbolinks’

  • then you will get a clean “rake” run.
    Tell me if I need to write an issue somewhere.

Thanks,

Al

Hi Al, this is a now issue. The turbolinks release that will be included in rails 5 is still in work in progress. These warnings will go when turbolinks 5 is released

Rafael: Yes, I was documenting the work-around for the community until we get another turbolinks gem release.

That’s right: Rails 5.0.0beta1 is using the edge version of Turbolinks.
Right now edge Turbolinks are not released on Rubygems, but we will definitely push the new version before Rails 5 final.

Kir,

Saw #628, but did not assume 3.0.0 was the next turbolink release after 2.5.3. Now I understand.

Thanks,
Al