Module: Nisetegami::ActionMailerExtensions::ClassMethods
- Defined in:
- lib/nisetegami/action_mailer_extensions.rb
Instance Method Summary collapse
Instance Method Details
#testing(action, recipient, variables) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/nisetegami/action_mailer_extensions.rb', line 14 def testing(action, recipient, variables) new.testing do |instance| instance.action_name = action.to_s variables.each { |k, v| instance.instance_variable_set("@#{k}", v) } if variables instance.mail to: recipient end end |