rubyist-aasm 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/event.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
data/lib/event.rb
CHANGED
@@ -14,7 +14,7 @@ module AASM
|
|
14
14
|
|
15
15
|
def fire(obj, to_state=nil, *args)
|
16
16
|
transitions = @transitions.select { |t| t.from == obj.aasm_current_state }
|
17
|
-
raise AASM::InvalidTransition if transitions.size == 0
|
17
|
+
raise AASM::InvalidTransition, "Event '#{name}' cannot transition from '#{obj.aasm_current_state}'" if transitions.size == 0
|
18
18
|
|
19
19
|
next_state = nil
|
20
20
|
transitions.each do |transition|
|
data/lib/version.rb
CHANGED