2 include CanCan::Ability
10 # Define abilities for the passed in user here. For example:
12 # user ||= User.new # guest user (not logged in)
19 # The first argument to `can` is the action you are giving the user
21 # If you pass :manage it will apply to every action. Other common actions
22 # here are :read, :create, :update and :destroy.
24 # The second argument is the resource the user can perform the action on.
25 # If you pass :all it will apply to every resource. Otherwise pass a Ruby
26 # class of the resource.
28 # The third argument is an optional hash of conditions to further filter the
30 # For example, here the user can only update published articles.
32 # can :update, Article, :published => true
34 # See the wiki for details:
35 # https://github.com/CanCanCommunity/cancancan/wiki/Defining-Abilities