# File app/models/ability.rb, line 4 def initialize(user) # Define abilities for the passed in user here. For example: # user ||= User.new # guest user (not logged in) if user.admin? can :manage, :all else can :read, :update, Project can :read, Team can :read, User end # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilities end