Sha256: 670263346451f6740001398447b5254ed3995ca9b86bd20e755c1e6de3eb2047

Contents?: true

Size: 604 Bytes

Versions: 13

Compression:

Stored size: 604 Bytes

Contents

# Form helper integration
# require 'active_enum/form_helpers/simple_form' # for SimpleForm

ActiveEnum.setup do |config|

  # Extend classes to add enumerate method
  # config.extend_classes = [ ActiveRecord::Base ]

  # Return name string as value for attribute method
  # config.use_name_as_value = false

  # Raise exception ActiveEnum::NotFound if enum value for a given id or name is not found
  # config.raise_on_not_found = false

  # Storage of values (:memory, :i18n)
  # config.storage = :memory

end

# ActiveEnum.define do
# 
#   enum(:enum_name) do
#     value 1 => 'Name'
#   end
# 
# end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
active_enum-1.2.1 lib/generators/active_enum/templates/config.rb
active_enum-1.2.0 lib/generators/active_enum/templates/config.rb
active_enum-1.1.0 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc8 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc7 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc6 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc5 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc4 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc3 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc2 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.rc1 lib/generators/active_enum/templates/config.rb
active_enum-1.0.0.pre lib/generators/active_enum/templates/config.rb