Class: Para::AttributeField::BooleanField
- Defined in:
- lib/para/attribute_field/boolean.rb
Instance Attribute Summary
Attributes inherited from Base
#field_method, #field_type, #model, #name, #options, #type
Instance Method Summary collapse
Methods inherited from Base
#attribute_column_path, #determine_name_and_field_method!, #excerptable_value?, #field_name, field_option, #field_options, field_types, #initialize, #parse_input, register, #searchable?, #type?
Constructor Details
This class inherits a constructor from Para::AttributeField::Base
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 |