Exception: Nisetegami::Exceptions::MissingTemplateError
- Defined in:
- lib/nisetegami/exceptions.rb
Instance Method Summary collapse
-
#initialize(mailer_instance) ⇒ MissingTemplateError
constructor
A new instance of MissingTemplateError.
- #message ⇒ Object
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
#message ⇒ Object
20 21 22 23 |
# File 'lib/nisetegami/exceptions.rb', line 20 def "Template for #{@action} not found. " \ "You should define it manually or use Nisetegami.populate!" end |