Sha256: 4530a00169c2b1d391d964cb331c21ea9d65754c80e03306715853aed0ba03a1
Contents?: true
Size: 368 Bytes
Versions: 49
Compression:
Stored size: 368 Bytes
Contents
module Para module AttributeField class BooleanField < AttributeField::Base register :boolean, :bool, self field_option :wrapper, :wrapper_name def value_for(instance) ::I18n.t("para.types.boolean.#{ (!!instance.send(name)).to_s }") end def wrapper_name :vertical_radio_and_checkboxes end end end end
Version data entries
49 entries across 49 versions & 1 rubygems