Class: BaseMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/base_mailer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user


5
6
7
# File 'app/mailers/base_mailer.rb', line 5

def current_user
  @current_user
end

Instance Method Details

#can?Boolean


11
12
13
# File 'app/mailers/base_mailer.rb', line 11

def can?
  Ability.abilities.allowed?(current_user, action, subject)
end