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

Fix Proc#bind being depreciated in activesupport 4.2 #17

Merged
merged 1 commit into from
Feb 20, 2015

Conversation

dziemian007
Copy link

Currently can't use with rails 4.2 and auth_handler defined, as activesupport 4.2.0 depreciated Proc#bind method.

usecase
https://github.com/dziemian007/translator/compare/rails-4.2

Failures:

  1) Translator::TranslationsController GET index auth_handler responds 401 with auth proc defined
     Failure/Error: get :index, use_route: '/'
     NoMethodError:
       undefined method `bind' for #<Proc:0x00000004feedf0>
     # ./app/controllers/translator/translations_controller.rb:81:in `auth'
     # ./spec/controllers/translations_controller_spec.rb:27:in `block (4 levels) in <top (required)>'

hubertlepicki added a commit that referenced this pull request Feb 20, 2015
Fix Proc#bind being depreciated in activesupport 4.2
@hubertlepicki hubertlepicki merged commit f5c66de into amberbit:master Feb 20, 2015
@hubertlepicki
Copy link
Member

@dziemian007 that's great fix, thanks!

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.

2 participants