Class: Workarea::Content::Fields::Boolean
- Inherits:
-
Workarea::Content::Field
- Object
- Workarea::Content::Field
- Workarea::Content::Fields::Boolean
- Defined in:
- app/models/workarea/content/fields/boolean.rb
Instance Attribute Summary
Attributes inherited from Workarea::Content::Field
Instance Method Summary collapse
Methods inherited from Workarea::Content::Field
#default, #initialize, #note, #partial, #required?, #slug, #tooltip, #type
Constructor Details
This class inherits a constructor from Workarea::Content::Field
Instance Method Details
#typecast(value) ⇒ Object
5 6 7 |
# File 'app/models/workarea/content/fields/boolean.rb', line 5 def typecast(value) value.to_s != 'false' end |