I'm doing this in preparation for the "Manager" ability, which will require even more refactors of the abilities (for example, manager can not modify their own account)
11 lines
156 B
Ruby
11 lines
156 B
Ruby
module Abilities
|
|
class Everyone
|
|
include CanCan::Ability
|
|
|
|
def initialize(user)
|
|
can :read, Debate
|
|
can :read, Proposal
|
|
end
|
|
end
|
|
end
|