class Foo
include Mongoid::Document
field :name
validates_length_of :name, minimum: 4
end
state_machine, :initial => :start do
event :go do
transition :start => :end
end
end
I just wrote a quick example, not copied the actual code so typos may apply, but the problem is as follows. I get a warning:
Instance method "validated?" is already defined in Mongoid::Validatable, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
All the validations return false no matter if I set them ignore_method_conficts or not. Without state_machine, validations work as expected. Any ideas with this?
My environment
I just wrote a quick example, not copied the actual code so typos may apply, but the problem is as follows. I get a warning:
All the validations return false no matter if I set them ignore_method_conficts or not. Without state_machine, validations work as expected. Any ideas with this?