diff --git a/app/models/ability.rb b/app/models/ability.rb index 3ac0ffc..b4e483f 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -3,9 +3,8 @@ class Ability # See the wiki for how to define abilities: # https://github.com/ryanb/cancan/wiki/Defining-Abilities - def initialize(user) + def initialize(user, phase = Phase.current) user ||= User.new - phase = Phase.current # Everyone can :see, :index