Sha256: 7da50fd589775a117491b3b2e34c8cd0354ae3f6f10c8029e9790dc67d2c4ec6

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

# Form helper integration
# require 'active_enum/form_helpers/simple_form'
# require 'active_enum/form_helpers/formtastic

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

  # Storage of values
  # config.storage = :memory

end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_enum-0.9.7 lib/generators/active_enum/templates/active_enum.rb
active_enum-0.9.6 lib/generators/active_enum/templates/active_enum.rb
active_enum-0.9.5 lib/generators/active_enum/templates/active_enum.rb
active_enum-0.9.4 lib/generators/active_enum/templates/active_enum.rb
active_enum-0.9.3 lib/generators/active_enum/templates/active_enum.rb
active_enum-0.9.1 lib/generators/active_enum/templates/active_enum.rb