Changeset [323036104e89e931e0c967b15a623112dd62c68b] by Wildfalcon
Revision 323036104e89e931e0c967b15a623112dd62c68b,
committed by Wildfalcon
· December 2nd, 2009 @ 05:43 AM
Updated the way error callbacks work
If a callback is declared (:error => :error_method) and
error_method exists
then error_method is called if an error is raised
If a callback is declared but the method does not exist, then a
NoMethodError
is raised if an error is raised
If no callback is declard, then any error raised will get
propogated
http://github.com/rubyist/aasm/commit/323036104e89e931e0c967b15a623...
2 changed files
-
M
lib/aasm/event.rb -
M
spec/unit/aasm_spec.rb