Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make sure we are passing the pointer of args to CapRailslessMailer #1

Open
wants to merge 1 commit into from

1 participant

Giovanni Go
Giovanni Go

Make sure we are passing the pointer of args to CapRailslessMailer. Otherwise, notifcation_email will see args as a double array so it will ignore any parameters.

Giovanni Go dreamnid 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.
5543bbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 7, 2011
  1. Giovanni Go

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

    dreamnid authored
    …therwise, notifcation_email will see args as a double array so it will ignore any parameters.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/capistrano/railsless_mailer.rb
4 lib/capistrano/railsless_mailer.rb
View
@@ -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
Something went wrong with that request. Please try again.