We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is this a defect or a configuration issue? Please help.
tickets=Ticket.with_permissions_to(:read)
breaks with:
undefined local variable or method `scoped' for #Class:0x5a207c0
Trace:
activerecord (4.1.6) lib/active_record/dynamic_matchers.rb:26:in method_missing' declarative_authorization (0.5.7) lib/declarative_authorization/in_model.rb:108:inwith_permissions_to' app/controllers/tickets_controller.rb:8:in index' actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (4.1.6) lib/abstract_controller/base.rb:189:in process_action' actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in block in process_action' activesupport (4.1.6) lib/active_support/callbacks.rb:113:incall'
method_missing' declarative_authorization (0.5.7) lib/declarative_authorization/in_model.rb:108:in
index' actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in
process_action' actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in
block in process_action' activesupport (4.1.6) lib/active_support/callbacks.rb:113:in
The text was updated successfully, but these errors were encountered:
Ok, found out that Model.scoped is depricated in rails 4. But you make it work if you use gem 'activerecord-deprecated_finders'.
Is somebody able to patch this?
Sorry, something went wrong.
So ehm... the pull request is merged into master. Is this issue closed or open?
Merged, but as far as I can see not released. There hasn't been a release in many years.
No branches or pull requests
Is this a defect or a configuration issue? Please help.
tickets=Ticket.with_permissions_to(:read)
breaks with:
undefined local variable or method `scoped' for #Class:0x5a207c0
Trace:
activerecord (4.1.6) lib/active_record/dynamic_matchers.rb:26:in
method_missing' declarative_authorization (0.5.7) lib/declarative_authorization/in_model.rb:108:in
with_permissions_to'app/controllers/tickets_controller.rb:8:in
index' actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in
send_action'actionpack (4.1.6) lib/abstract_controller/base.rb:189:in
process_action' actionpack (4.1.6) lib/action_controller/metal/rendering.rb:10:in
process_action'actionpack (4.1.6) lib/abstract_controller/callbacks.rb:20:in
block in process_action' activesupport (4.1.6) lib/active_support/callbacks.rb:113:in
call'The text was updated successfully, but these errors were encountered: