Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from j-wilkins/from_array

fix 1.8.7 bug with :from array
  • Loading branch information...
commit a401eef506589549163882d9231320b3e28e4926 2 parents 7d33a11 + 01f36e5
@svenfuchs authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.