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

Already on GitHub? Sign in to your account

undefined method `accessible_by' for Church:Class #532

Closed
jacobwgillespie opened this Issue Dec 18, 2011 · 2 comments

Comments

Projects
None yet
2 participants

I'm trying to use cancan with mongoid and am getting an error when using the following line:

@churches = Church.accessible_by(current_ability, :update) 

The console confirms that accessible_by is not a method for the Church class... is there something extra that I should be doing with Mongoid in order to get the accessible_by method included?

Thanks!

Collaborator

derekprior commented May 15, 2012

Hi @jacobwg, does this issue help at all:
#611

Unfortunately, I have zero experience with mongoid so I can't be of any specific help. Is this still an issue?

Thanks @derekprior, though at this point I'm not using Mongoid for the project anyway. I would assume that this is working for most people as it's a core feature of CanCan.

I'm closing this - if any has the same problem, feel free to reopen.

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