Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state_events and namespace ? #54

Closed
obrie opened this issue Aug 6, 2011 · 1 comment
Closed

state_events and namespace ? #54

obrie opened this issue Aug 6, 2011 · 1 comment
Assignees

Comments

@obrie
Copy link
Member

obrie commented Aug 6, 2011

Thomas Darde opened this issue

I think the state_events helper is not generated when using multiple state_machines and the namespace feature. (only the main namespace is available)

original LH ticket

This ticket has 0 attachment(s).

@ghost ghost assigned obrie Aug 6, 2011
@obrie
Copy link
Member Author

obrie commented Aug 6, 2011

The :namespace option is only used for states and events (i.e. car_parked? for a "parked" state or can_park? for a "park" event). Methods like "state_events" are already namespaced by the name of the state machine. The prefix used here ("state") is based on the name of the machine. You can change the name of the machine to anything you want, but you’ll just need to explicitly set the attribute to write to via the :attribute option in the state_machine.

@obrie obrie closed this as completed Aug 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant