Class: CaringForm::Field::CheckBoxes

Inherits:
Collection show all
Defined in:
lib/caring_form/field/check_boxes.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Collection

#apply_to_model, #simple_type

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, options = {})
  super.tap do |req|
    req[:as] = options.fetch(:as, :caring_check)
  end
end