Class: DisplayInput

Inherits:
StringInput
  • Object
show all
Defined in:
app/inputs/display_input.rb

Overview

Instance Method Summary collapse

Methods inherited from StringInput

#input_html_classes

Instance Method Details

#input(wrapper_options) ⇒ Object



4
5
6
7
8
9
# File 'app/inputs/display_input.rb', line 4

def input(wrapper_options)
  input_html_options[:readonly] = true
  input_html_options[:disabled] = true
  input_html_options[:placeholder] = options[:value].presence || object.send(attribute_name)
  super
end