blob: cabf0bf7b9ca6381106bd2ab2230fda696c54687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Form helper integration
# require 'active_enum/form_helpers/formtastic' # for Formtastic <2
require 'active_enum/form_helpers/formtastic2' # for Formtastic 2.x
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
|