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

Split up my CanCan Ability #766

Open
vixlima opened this Issue Oct 24, 2012 · 3 comments

Comments

Projects
None yet
4 participants

vixlima commented Oct 24, 2012

hello,

Is possible split my CanCan 2.0 Ability similar RailsCast episode 386?

   if user.nil?
      GuestPermission.new
    elsif user.admin?
      AdminPermission.new(user)
    else
      MemberPermission.new(user)
    end

Thanks

Andre Lima

Yes it is possible to split your Ability

Recently I met the same

Check this may be it helps you

It seems to me the question is answered by @nishanthan144, so the issue can be closed.

xhoy commented Jul 1, 2014

Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013.
Since only Ryan himself has commit permissions, the CanCan project is on a standstill.

CanCan has many open issues, including missing support for Rails 4. To keep CanCan alive, an active fork exists at cancancommunity/cancancan. The new gem is cancancan. More info is available at #994.

If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan.

We hope to see you on the other side!

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