Class: Formtastic::Inputs::EnumInput
- Inherits:
-
SelectInput
- Object
- SelectInput
- Formtastic::Inputs::EnumInput
- Defined in:
- lib/active_enum/form_helpers/formtastic2.rb
Instance Method Summary collapse
Instance Method Details
#raw_collection ⇒ Object
5 6 7 8 9 10 |
# File 'lib/active_enum/form_helpers/formtastic2.rb', line 5 def raw_collection @raw_collection ||= begin raise "Attribute '#{@method}' has no enum class" unless enum = @object.class.active_enum_for(@method) enum.to_select end end |