This project is archived and is in readonly mode.
bug in ActiveModel::StateMachine current state dynamic method with machine name is set
Reported by eagle.anton (at gmail) | October 1st, 2008 @ 07:05 AM | in 2.x
When we set name to state machine, dynamic method of current state falls.
Example:
class Example
include ActiveModel::StateMachine
state_machine :example do
state :new state :changed
event :change do
transitions :from => :new, :to => :changed
end
end end
p = Example.new
p.change!
p.current_state(:example) # => :changed
p.changed? # => :new
Why markup does not undesrtand new line ?
Comments and changes to this ticket
-
Pratik January 18th, 2009 @ 05:48 AM
- Assigned user changed from Rick to Pratik
-
Pratik April 21st, 2009 @ 01:37 PM
- Assigned user changed from Pratik to josh
- State changed from new to wontfix
I vote for getting rid of StateMachine from AMo.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>