Class: Administrate::Field::Boolean
- Defined in:
- lib/administrate/field/boolean.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute, #data, #page, #resource
Instance Method Summary collapse
Methods inherited from Base
#html_class, html_class, #initialize, #name, permitted_attribute, searchable?, #to_partial_path, with_options
Constructor Details
This class inherits a constructor from Administrate::Field::Base
Instance Method Details
#to_s ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/administrate/field/boolean.rb', line 6 def to_s if data.nil? "-" else data.to_s end end |