Permalink
Browse files

Make sure we are passing the pointer of args to CapRailslessMailer. O…

…therwise, notifcation_email will see args as a double array so it will ignore any parameters.
  • Loading branch information...
1 parent 8616567 commit 5543bbed9be5989450507acbe65695dda4fc4037 @dreamnid committed Jul 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/railsless_mailer.rb
@@ -15,9 +15,9 @@ class Configuration
module RailslessCapistranoMailer
def send_notification_email(cap, config = {}, *args)
if CapRailslessMailer.respond_to? :notification_email
- CapRailslessMailer.notification_email(cap, config, args).deliver
+ CapRailslessMailer.notification_email(cap, config, *args).deliver
else
- CapRailslessMailer.deliver_notification_email(cap, config, args)
+ CapRailslessMailer.deliver_notification_email(cap, config, *args)
end
end
end

0 comments on commit 5543bbe

Please sign in to comment.