Class: ActionAdmin::TitleInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
app/inputs/action_admin/title_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/inputs/action_admin/title_input.rb', line 3

def input(wrapper_options)
  input_html_options[:placeholder] ||= raw_label_text
  input_html_options[:type]        ||= 'text'
  input_html_options[:class]       ||= []
  input_html_options[:class]        += ['large']

  super
end

#label(wrapper_options) ⇒ Object



12
13
14
# File 'app/inputs/action_admin/title_input.rb', line 12

def label(wrapper_options)
  ''
end