Class: FieldableForm::CheckBox

Inherits:
Field
  • Object
show all
Defined in:
lib/fieldable_form/check_box.rb

Constant Summary

Constants inherited from Field

Field::DESCENDANTS

Instance Method Summary collapse

Methods inherited from Field

new

Instance Method Details

#render_methodObject

Overrides



5
6
7
# File 'lib/fieldable_form/check_box.rb', line 5

def render_method
  :check_box
end

#render_optionsObject

Overrides



10
11
12
# File 'lib/fieldable_form/check_box.rb', line 10

def render_options
  [name]
end

#validatorsObject

Overrides



20
21
22
# File 'lib/fieldable_form/check_box.rb', line 20

def validators
  []
end

#view_partial_nameObject

Overrides



15
16
17
# File 'lib/fieldable_form/check_box.rb', line 15

def view_partial_name
  'check_box'
end