Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

bug in ActiveModel::StateMachine current state dynamic method with machine name is set

#1147

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 ?

Reported by eagle.anton (at gmail) · October 1st, 2008 @ 07:05 AM

State: wontfix
Milestone: 2.x
Assigned to: josh josh
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user changed from Rick to Pratik

    January 18th, 2009 @ 05:48 AM

  2. eagle.anton (at gmail)
  3. Pratik
    Pratik
    • Assigned user changed from Pratik to josh
    • State changed from new to wontfix

    I vote for getting rid of StateMachine from AMo.

    April 21st, 2009 @ 01:37 PM