stateful_enum
stateful_enum copied to clipboard
compatibility for non-Rails apps
This allows non-Rails projects using ActiveRecord to utilize stateful_enum. It checks ActiveRecord's version number instead of Rails, and only loads the Railtie if ::Rails::Railtie is defined. This shouldn't cause any issue with existing Rails apps.