aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_mailer_basics.md
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-08 02:11:47 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-08 02:11:47 -0800
commit236bed9f1dc08792566d8cbf5e69aa4bd6ed514f (patch)
tree4f1b3bfacf0cf64e74b9d7b45d94ab3b494170c4 /guides/source/action_mailer_basics.md
parent0eedfec8b5f9b49ec6cb154adfe27e5507736413 (diff)
parentf19e41fb16ea77422e0061fd47139d4d01a44f0c (diff)
downloadrails-236bed9f1dc08792566d8cbf5e69aa4bd6ed514f.tar.gz
rails-236bed9f1dc08792566d8cbf5e69aa4bd6ed514f.tar.bz2
rails-236bed9f1dc08792566d8cbf5e69aa4bd6ed514f.zip
Merge pull request #8462 from frodsan/update_guides_action_callbacks
Update guides to use _action callbacks [ci skip]
Diffstat (limited to 'guides/source/action_mailer_basics.md')
-rw-r--r--guides/source/action_mailer_basics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md
index ddb0e438c9..bf7692e2a2 100644
--- a/guides/source/action_mailer_basics.md
+++ b/guides/source/action_mailer_basics.md
@@ -447,17 +447,17 @@ end
Action Mailer Callbacks
---------------------------
-Action Mailer allows for you to specify a `before_filter`, `after_filter` and 'around_filter'.
+Action Mailer allows for you to specify a `before_action`, `after_action` and 'around_action'.
* Filters can be specified with a block or a symbol to a method in the mailer class similar to controllers.
-* You could use a `before_filter` to prepopulate the mail object with defaults, delivery_method_options or insert default headers and attachments.
+* You could use a `before_action` to prepopulate the mail object with defaults, delivery_method_options or insert default headers and attachments.
-* You could use an `after_filter` to do similar setup as a `before_filter` but using instance variables set in your mailer action.
+* You could use an `after_action` to do similar setup as a `before_action` but using instance variables set in your mailer action.
```ruby
class UserMailer < ActionMailer::Base
- after_filter :set_delivery_options, :prevent_delivery_to_guests, :set_business_headers
+ after_action :set_delivery_options, :prevent_delivery_to_guests, :set_business_headers
def feedback_message(business, user)
@business = business