Class: Form::RadioButton

Inherits:
BaseTag
  • Object
show all
Defined in:
app/views/form/radio_button.rb

Constant Summary collapse

ALLOWED_OPTIONS =
[:checked, :tag_value].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allowed_optionsObject



7
8
9
# File 'app/views/form/radio_button.rb', line 7

def allowed_options
  super + ALLOWED_OPTIONS
end

Instance Method Details

#view_templateObject



14
15
16
# File 'app/views/form/radio_button.rb', line 14

def view_template
  input(type: :radio, class: classes, data:, **options_with_defaults)
end