with_permissions_to not working in rails 4.1.6 #199

Open
fseefried opened this Issue Oct 1, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@fseefried

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'

@fseefried

This comment has been minimized.

Show comment
Hide comment
@fseefried

fseefried Oct 3, 2014

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?

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?

@m1foley m1foley referenced this issue Dec 3, 2014

Merged

Rails 4 support #194

@klyonrad

This comment has been minimized.

Show comment
Hide comment
@klyonrad

klyonrad Apr 25, 2016

So ehm... the pull request is merged into master. Is this issue closed or open?

So ehm... the pull request is merged into master. Is this issue closed or open?

@jphager2

This comment has been minimized.

Show comment
Hide comment
@jphager2

jphager2 Feb 7, 2018

Merged, but as far as I can see not released. There hasn't been a release in many years.

jphager2 commented Feb 7, 2018

Merged, but as far as I can see not released. There hasn't been a release in many years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment