oauth-plugin icon indicating copy to clipboard operation
oauth-plugin copied to clipboard

Library does not work with Rails 5.1 due to use of before_filter

Open kevinburkeomg opened this issue 6 years ago • 1 comments

If you try to include this library with Rails 5.1, you get the following error:

Failure/Error: include Oauth::Controllers::ConsumerController

NoMethodError:
  undefined method `before_filter' for OAuthConsumersController:Class
  Did you mean?  before_action
# ./vendor/bundle/ruby/2.4.0/gems/oauth-plugin-0.5.1/lib/oauth/controllers/consumer_controller.rb:6:in `block in included'
# ./vendor/bundle/ruby/2.4.0/gems/oauth-plugin-0.5.1/lib/oauth/controllers/consumer_controller.rb:5:in `class_eval'
# ./vendor/bundle/ruby/2.4.0/gems/oauth-plugin-0.5.1/lib/oauth/controllers/consumer_controller.rb:5:in `included'
# ./app/controllers/oauth_consumers_controller.rb:3:in `include'
# ./app/controllers/oauth_consumers_controller.rb:3:in `<class:OAuthConsumersController>'
# ./app/controllers/oauth_consumers_controller.rb:2:in `<top (required)>'

before_filter was removed in Rails 5.1, so this library isn't compatible. It looks like #156 will fix the issue.

kevinburkeomg avatar May 15 '18 19:05 kevinburkeomg

I believe t gem is no longer sustained.

t last commit, image

JorgeLAB avatar Feb 22 '24 14:02 JorgeLAB