Sha256: 596a3a204e0c2c245efb2ffc9c6fe2da6b3973560bb82ddce8c9ef34f4162e56

Contents?: true

Size: 276 Bytes

Versions: 9

Compression:

Stored size: 276 Bytes

Contents

module HasEnum

  autoload :ClassMethods,            'has_enum/class_methods'

  def self.included(base)
    base.extend ClassMethods
  end

end

class ActiveRecord::Base
  include HasEnum
end

begin
  require 'formtastic'
  require 'has_enum/formtastic'
rescue LoadError
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
has_enum-0.9.2 lib/has_enum.rb
has_enum-0.9.1 lib/has_enum.rb
has_enum-0.9.0 lib/has_enum.rb
has_enum-0.8.2 lib/has_enum.rb
has_enum-0.8.1.1 lib/has_enum.rb
has_enum-0.8.1 lib/has_enum.rb
has_enum-0.8.0 lib/has_enum.rb
has_enum-0.7.3 lib/has_enum.rb
has_enum-0.7.2.1 lib/has_enum.rb