Permalink
Browse files

Merge pull request #7 from j-wilkins/from_array

fix 1.8.7 bug with :from array
  • Loading branch information...
2 parents 7d33a11 + 01f36e5 commit a401eef506589549163882d9231320b3e28e4926 Sven Fuchs committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_states.rb
View
@@ -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 a401eef

Please sign in to comment.