diff --git a/app/models/ability.rb b/app/models/ability.rb index a345631b477e8a5697ffb5b1a5d6692e580e5a9c..9c9ed4000aa2336ed8c6ce61cfc59c67ddf694e9 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -8,7 +8,7 @@ class Ability end def initialize(user) - @user ||= User.new # guest user (not logged in) + @user = user ||= User.new # guest user (not logged in) end protected