benzelano / test_lh_import

1 stars 0 forks source link

Adding StateMachine to a rails3 project makes 'rails generate' unhappy #145

Closed benzelano closed 13 years ago

benzelano commented 13 years ago

Sven Riedel opened this issue

Environment: Rails3 beta3, Ruby 1.9.2

Added "gem ’statemachine’" to my Gemfile, ran "bundle install --relock". Running "rails generate" will then result in:

/home/sr/.bundle/ruby/1.9.1/gems/statemachine-1.0.0/lib/statemachine/action_invokation.rb:58:in `instance_exec’: wrong number of arguments (1 for 0) (ArgumentError)

Tracing the instance_exec calls shows two, with the error generated on the second call: Sending __instance_exec_82285100_85565950 with #MyApp::Application:0xa396f0c Sending __instance_exec_82285100_85768070 with #MyApp::Application:0xa396f0c

original LH ticket

This ticket has 0 attachment(s).

benzelano commented 13 years ago

You appear to be using the wrong library. My library is state_machine (http://github.com/pluginaweek/state_machine ). You’re using statemachine (http://github.com/slagyr/statemachine ). Sorry for the confusion.