Sha256: bd53b6fd84facbbf2cd845af22fda75deb530802c4b73df50a686327bd26a433
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
module Para module AttributeField class BooleanField < AttributeField::Base field_option :wrapper, :wrapper_name def value_for(instance) I18n.t("para.types.boolean.#{ (!!instance.send(name)).to_s }") end def wrapper_name :horizontal_radio_and_checkboxes end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.4.0 | lib/para/attribute_field/boolean.rb |