Class: Para::AttributeField::BooleanField

Inherits:
AttributeField::Base
  • Object
show all
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_nameObject



12
13
14
# File 'lib/para/attribute_field/boolean.rb', line 12

def wrapper_name
  :vertical_radio_and_checkboxes
end