rubyist/aasm — pull request #46 by codez (2012-04-02 09:51:51+00:00)
Title: Keep options in subclasses

Currently, when a class with an AASM declaration is subclassed and a transition is performed on the sublcass, the options are reset to the default values. So even if, e.g., :whiny_transitions is set to false, on the subclass it will be reset to true. This is due to the implementation of AASM::Base and the storage of these instances in a class-side instance variable (AASM::ClassMethods.aasm).

This commit sets options only if they do not exist yet to fix this issue.