spec/dummy/lib/maily_hooks.rb in maily-0.5.0 vs spec/dummy/lib/maily_hooks.rb in maily-0.6.0

- old
+ new

@@ -1,4 +1,6 @@ +email = -> { 'foo@foo.com' } + Maily.hooks_for('Notifier') do |mailer| - mailer.register_hook(:invitation, 'foo@foo.com') - mailer.register_hook(:recommendation, template_path: 'notifications') -end \ No newline at end of file + mailer.register_hook(:invitation, email) + mailer.register_hook(:recommendation, template_path: 'notifications', description: 'description') +end