Fix Basemailer#can?
This commit is contained in:
parent
1202875dff
commit
eacdd5080a
|
@ -13,7 +13,7 @@ class BaseMailer < ActionMailer::Base
|
|||
end
|
||||
|
||||
def can?
|
||||
Ability.abilities.allowed?(user, action, subject)
|
||||
Ability.abilities.allowed?(current_user, action, subject)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue