Sha256: e19b700b2e67662011d413fda3cfebb533d0b3690ea5f30a4bd58bb094a7bafc
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 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 (:memory, :i18n) # config.storage = :memory end # ActiveEnum.define do # # enum(:enum_name) do # value 1 => 'Name' # end # # end
Version data entries
4 entries across 4 versions & 1 rubygems