What I need:
Something similar to before_filter in ActionMailer in Rails 3.
Problem:
I am working on Rails 3 and want to have before_filter in ActionMailer. I checked the actionmailer api and found out about the before_action and after_action callbacks. When implemented, it gives an error:
NoMethodError: undefined method `before_action' for Notifier:Class
It later became clear that before calling the Rails 3 command, there is no this message
Is there any hook or gem so we have something similar to before_filter in Rails 3.
Please, help. Many thanks!
callback ruby-on-rails-3 actionmailer
Swati agggarwal
source share