Class: EffectiveStaticControlInput
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- EffectiveStaticControlInput
- Defined in:
- app/models/inputs/effective_static_control_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
7 8 9 10 11 12 |
# File 'app/models/inputs/effective_static_control_input.rb', line 7 def input( = nil) = (, ) || {} ['data-input-js-options'] = .reject { |k, _| EffectiveFormInputs::REJECTED_INPUT_JS_OPTIONS.include?(k) } Inputs::EffectiveStaticControl::Input.new(object, object_name, template, attribute_name, ).to_html end |