Class: Para::AttributeField::BooleanField
- Inherits:
-
AttributeField::Base
- Object
- AttributeField::Base
- Para::AttributeField::BooleanField
- Defined in:
- lib/para/attribute_field/boolean.rb
Instance Method Summary collapse
Instance Method Details
#value_for(instance) ⇒ Object
8 9 10 |
# File 'lib/para/attribute_field/boolean.rb', line 8 def value_for(instance) ::I18n.t("para.types.boolean.#{ (!!instance.send(name)).to_s }") end |
#wrapper_name ⇒ Object
12 13 14 |
# File 'lib/para/attribute_field/boolean.rb', line 12 def wrapper_name :vertical_radio_and_checkboxes end |