Sha256: 0691b909c25683aab8478fb8e0c8f07515bfd9d0d1041a723ee75c33fb4071b7
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module ActiveEnum module Formtastic def enum_input(method, options) raise "Attribute '#{method}' has no enum class" unless enum = @object.class.active_enum_for(method) select_input(method, options.merge(:collection => enum.to_select)) end end end Formtastic::SemanticFormBuilder.send :include, ActiveEnum::Formtastic
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_enum-0.6.6 | lib/active_enum/formtastic.rb |