Sha256: cc54a7ea15e4d98f74981c595262dd073015b9300be346df992abbdd27e7e17d
Contents?: true
Size: 370 Bytes
Versions: 7
Compression:
Stored size: 370 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 :horizontal_radio_and_checkboxes end end end end
Version data entries
7 entries across 7 versions & 1 rubygems