spec/dummy/lib/maily_hooks.rb in maily-0.6.3 vs spec/dummy/lib/maily_hooks.rb in maily-0.7.0
- old
+ new
@@ -1,6 +1,9 @@
email = -> { 'foo@foo.com' }
Maily.hooks_for('Notifier') do |mailer|
mailer.register_hook(:invitation, email)
mailer.register_hook(:recommendation, template_path: 'notifications', description: 'description')
+ mailer.register_hook(:custom_template_name, template_name: 'invitation')
+
+ mailer.hide_email(:hidden)
end