pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

No documentation on inheritance #286

Closed stevecd closed 10 years ago

stevecd commented 10 years ago

I haven't been able to find anything on inheritance. How would one go about modifying/adding to inherited states and events? Unless I should be able to infer this from current documentation, it might be worth adding, I've found at least two others asking the same question.

the8472 commented 10 years ago

as soon as you call to the state_machine class method in a subclass everything gets duped over to the subclass and you can re-open events, add new transitions etc.

Removing stuff is more difficult, but i think i've seen a reset method somewhere.

stevecd commented 10 years ago

I see, thanks. I guess that might be obvious enough.