Permalink
Browse files

Detect ActionMailer 2/3 better to avoid deprecation messages

  • Loading branch information...
1 parent 06b7546 commit ceb90ad7c92138659362c83cada76b35264f14f8 @jdpace jdpace committed Jul 27, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/cap_gun.rb
View
6 lib/cap_gun.rb
@@ -80,10 +80,10 @@ def deployment_notification(capistrano)
desc "Send notification of the current release and the previous release via email."
task :email, :roles => :app do
CapGun::Mailer.load_mailer_config(self)
- if CapGun::Mailer.respond_to?(:deliver_deployment_notification)
- CapGun::Mailer.deliver_deployment_notification(self)
- else
+ if CapGun::Mailer.respond_to?(:deployment_notification)
CapGun::Mailer.deployment_notification(self).deliver
+ else
+ CapGun::Mailer.deliver_deployment_notification(self)
end
end
end

1 comment on commit ceb90ad

@boosty

Nice that you fixed this! Any chance to see an updated gem soon?

Thanks for this nice project.
Sebastian

Please sign in to comment.