lib/maily/mailer.rb in maily-0.10.1 vs lib/maily/mailer.rb in maily-0.11.0
- old
+ new
@@ -39,11 +39,11 @@
emails.size
end
def register_hook(email_name, *args)
email = find_email(email_name) || add_email(email_name)
- email && email.register_hook(args)
+ email && email.register_hook(*args)
end
def hide_email(*email_names)
email_names.each do |email_name|
emails.delete(email_name.to_s)
@@ -63,6 +63,6 @@
def add_email(email_name)
email = Maily::Email.new(email_name.to_s, self)
self.emails[email.name] = email
end
end
-end
\ No newline at end of file
+end