Sha256: 16b314407d486cd128faaa112cab5c88802d73abcbfb5c52efc3449050819a13
Contents?: true
Size: 305 Bytes
Versions: 1
Compression:
Stored size: 305 Bytes
Contents
module Wijet module FormHelper def select_enumeration(method) @template.select_tag "#{@object_name}[#{method}]", @template.options_from_collection_for_select(Wijet::SimpleEnumerations::EnumerationString::Enumeration[method], :to_s, :to_s , @object.send(method).to_s) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
objectreload-simple_enumerations-0.1.5 | lib/simple_enumerations/form_helper.rb |