Skip to content
Browse files

fix 1.8.7 bug with :from array

  • Loading branch information...
1 parent 7d33a11 commit 01f36e50083217f0d6219f34502a4bd35993988d @j-wilkins j-wilkins committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_states.rb
View
2 lib/simple_states.rb
@@ -42,7 +42,7 @@ def add_states(*states)
end
def event(name, options = {})
- add_states(*options[:from], options[:to])
+ add_states(options[:to], *options[:from])
self.events += [Event.new(name, options)]
end
end

0 comments on commit 01f36e5

Please sign in to comment.
Something went wrong with that request. Please try again.