You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i just run into this problem while trying to integrate sunspot in a rails3 project https://github.com/outoftime/sunspot
After executing "rake sunspot:reindex" it gives me this error:
rake aborted!
Transitions::InvalidMethodOverride
Tasks: TOP => sunspot:reindex
My Customer class - where the exception is thrown - looks like this
classCustomer < ActiveRecord::BaseincludeActiveModel::Transitions
...
state_machine:initial=>:unregistered,:auto_scopes=>truedostate:unregisteredstate:registeredevent:register,:timestamp=>truedotransitions:to=>:registered,:from=>:unregisteredendend...
end
and the exception is thrown where the "state_machine" line is.
why is the exception thrown here? what can i do to fix this?
The text was updated successfully, but these errors were encountered:
I found the problem.
The sunspot rake task requires the model again although it is already loaded and that executes the state_machine method again which tries to redeclare the already existing scopes...
Seems like the problem needs to be fixed on the sunspot side.
What do you think?
Off of the top of my head, yes, I'd say that's a "sunspot" problem. I can't think of any valid reasons to do this, so you probably should open up an issue there.
Hi,
i just run into this problem while trying to integrate sunspot in a rails3 project https://github.com/outoftime/sunspot
After executing "rake sunspot:reindex" it gives me this error:
My Customer class - where the exception is thrown - looks like this
and the exception is thrown where the "state_machine" line is.
why is the exception thrown here? what can i do to fix this?
The text was updated successfully, but these errors were encountered: