Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace before_filter with before_action #751

Conversation

wintersolutions
Copy link

rails 5 deprecation warning was:
DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from block in setup_action_controller at [..]/gems/draper-4b4f392826c4/lib/draper.rb:36)

janraasch and others added 6 commits June 6, 2016 16:13
I’m not sure exactly what needs to change. Here’s what another gem did
to fix it: jfirebaugh/konacha#216
- require Rails 5 since Rubygems doesn’t allow us to only require
activemodel-serializers-xml when Rails is version 5
- require Ruby 2.2 since that’s what Rails 5 requires
rails 5 deprecation warning was:
DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from block in setup_action_controller at [..]/gems/draper-4b4f392826c4/lib/draper.rb:36)
@seanlinsley seanlinsley force-pushed the rails-5 branch 2 times, most recently from 22a7f6d to a7e368f Compare July 4, 2016 20:17
@seanlinsley
Copy link
Member

Hi, thanks for the PR! In #752 I've put together all the changes necessary to get Draper working with Rails 5. It would be appreciated if you could test it out in your app and report any issues you find :octocat:

@seanlinsley seanlinsley closed this Jul 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants