Class: CaringForm::Field::CheckBoxes
- Inherits:
-
Collection
- Object
- Struct
- Base
- Collection
- CaringForm::Field::CheckBoxes
- Defined in:
- lib/caring_form/field/check_boxes.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Collection
Methods inherited from Base
#apply_to_model, #default_label, #initialize, register, #render, #simple_type
Constructor Details
This class inherits a constructor from CaringForm::Field::Base
Instance Method Details
#input_properties(form, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/caring_form/field/check_boxes.rb', line 8 def input_properties(form, = {}) super.tap do |req| req[:as] = .fetch(:as, :caring_check) end end |