Exception: Nisetegami::Exceptions::MissingTemplateError

Inherits:
Error
  • Object
show all
Defined in:
lib/nisetegami/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(mailer_instance) ⇒ MissingTemplateError

Returns a new instance of MissingTemplateError.



17
18
19
# File 'lib/nisetegami/exceptions.rb', line 17

def initialize(mailer_instance)
  @action = "#{mailer_instance.class.name}##{mailer_instance.action_name}"
end

Instance Method Details

#messageObject



20
21
22
23
# File 'lib/nisetegami/exceptions.rb', line 20

def message
  "Template for #{@action} not found. " \
  "You should define it manually or use Nisetegami.populate!"
end