Class: StaticInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- StaticInput
- Defined in:
- app/inputs/static_input.rb
Overview
SimpleForm input wrapper: static.
Instance Method Summary collapse
Instance Method Details
#input(_wrapper_options) ⇒ Object
4 5 6 |
# File 'app/inputs/static_input.rb', line 4 def input() template.content_tag(:p, [:static_value] || object.try(attribute_name), class: 'form-control-plaintext', id: [:static_id]) end |