Raising exception in call back

10 views
Skip to first unread message

Junil J.

unread,
Nov 26, 2013, 1:28:23 AM11/26/13
to rubyonra...@googlegroups.com
Is it possible to catch exceptions raised in callbacks like after_create
in the controller?

--
Posted via http://www.ruby-forum.com/.

Dheeraj Kumar

unread,
Nov 26, 2013, 1:30:33 AM11/26/13
to rubyonra...@googlegroups.com
Of course. Those callbacks are synchronous, so the controller will catch those exceptions.

-- 
Dheeraj Kumar

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages