Class: DisplayInput
- Inherits:
-
StringInput
- Object
- SimpleForm::Inputs::StringInput
- StringInput
- DisplayInput
- Defined in:
- app/inputs/display_input.rb
Overview
Instance Method Summary collapse
Methods inherited from StringInput
Instance Method Details
#input(wrapper_options) ⇒ Object
4 5 6 7 8 9 |
# File 'app/inputs/display_input.rb', line 4 def input() [:readonly] = true [:disabled] = true [:placeholder] = [:value].presence || object.send(attribute_name) super end |