Sha256: e2d0a42f13da37a15353b9624b465354d80aedaaa490b5bda623152f6b348eae

Contents?: true

Size: 578 Bytes

Versions: 7

Compression:

Stored size: 578 Bytes

Contents

# encoding: utf-8
module EnumField
  autoload :DefineEnum, 'enum_field/define_enum'
  autoload :Builder, 'enum_field/builder'
  autoload :EnumeratedAttribute, 'enum_field/enumerated_attribute'
  autoload :Version, 'enum_field/version'
  
  class BadId < StandardError
    def initialize(repeated_id)
      @repeated_id = repeated_id
    end
    attr_reader :repeated_id
  end

  class RepeatedId < StandardError; end
  class InvalidId < StandardError; end
  class InvalidOptions < StandardError; end
  class ObjectNotFound < StandardError; end
end

require 'enum_field/railtie'

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field.rb
galetahub-enum_field-0.2.0 lib/enum_field.rb