tab/app/models/client_ability.rb

9 lines
153 B
Ruby
Raw Normal View History

2015-09-09 11:24:45 +02:00
class Ability
include CanCan::Ability
def initialize(client)
client ||= Client.new # guest user (not logged in)
can :manage, :all
end
end