HTTPS clone URL
Subversion checkout URL
See notes below if moving from 1.x to 3.x
In addition to some removing a few unnecessary methods, there are changes to how enum classes are defined. The
enum_classes macro has been removed in favor of inferring them from the subclass names. Subclasses must now follow a naming convention that uses the parent class as a namespace:
class Parent < ClassyEnum::Base enum_classes :child1, :child2 end class ParentChild1 < Parent end class ParentChild2 < Parent end
class Parent < ClassyEnum::Base end class Parent::Child1 < Parent end class Parent::Child2 < Parent end
Prior to 2.0, enum classes were implicity defined and were only required when overriding methods or properties. As of 2.0, all enum classes must explicity subclass a child of ClassyEnum::Base. If you used the generator, there are no changes to the existing structure.
Built-in Formtastic support has been removed. See the note at the bottom of this readme for more information how how to enable it.