How to implement ActionMailer callbacks for rails3?

67 views
Skip to first unread message

barek

unread,
Dec 1, 2011, 11:36:53 PM12/1/11
to Ruby on Rails: Talk
Hi,
Is it possible to implement callbacks(like
before_deliver :some_methodes, after_deliver :other_methods) with
ActionMailer in Rails3?

Please somebody help me or give me an idea :)
Already I saw http://railscasts.com/episodes/206-action-mailer-in-rails-3
but it I like to do it as callbacks

--
Best Regards
Abdul Barek
Senior Software Engineer

Evgeniy K.

unread,
May 15, 2013, 9:19:20 AM5/15/13
to rubyonra...@googlegroups.com
I wrote a simple gem for this couple of years ago and branch 2.0
supports rails3.

you can check it out here:
https://github.com/kelyar/mailer_callbacks/tree/2.0

or wait for rails4 they will have it builtin.

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages