Sha256: 0b44b038ea5f641f9b8c9fd6b7f6bb3a28a5a1fc17ca42e3c370e753afa7944f
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
module HasEnum autoload :ClassMethods, 'has_enum/class_methods' def self.included(base) base.extend ClassMethods end end require 'active_record' class ActiveRecord::Base include HasEnum end begin require 'formtastic' require 'has_enum/formtastic' rescue LoadError end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_enum-0.9.4 | lib/has_enum.rb |
has_enum-0.9.3 | lib/has_enum.rb |
has_enum-0.9.2.1 | lib/has_enum.rb |