Permalink
Browse files

Use .tap instead of .returning - fixes deprecation warning in Rails 2…

….3.10
  • Loading branch information...
1 parent 5d63db2 commit fabfed2eaf4cfd2507ac7485ce563266a5faf758 @rud rud committed Nov 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/postmark_delivery_method.rb
@@ -32,7 +32,7 @@ def postmark_attachments(value)
end
def create_mail_with_postmark_extras
- returning create_mail_without_postmark_extras do |mail|
+ create_mail_without_postmark_extras.tap do |mail|
mail.tag = @tag if @tag
mail.postmark_attachments = @attachments if @attachments
end

0 comments on commit fabfed2

Please sign in to comment.