Changeset [323036104e89e931e0c967b15a623112dd62c68b] 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...
Committed by Wildfalcon
- M lib/aasm/event.rb
- M spec/unit/aasm_spec.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.