Module: FormtasticBootstrap::Inputs::Base::Html

Includes:
Formtastic::Inputs::Base::Html
Included in:
FormtasticBootstrap::Inputs::Base
Defined in:
lib/formtastic-bootstrap/inputs/base/html.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject



8
9
10
11
12
13
14
15
16
# File 'lib/formtastic-bootstrap/inputs/base/html.rb', line 8

def input_html_options
  if errors?
    { 
      :class => "error"
    }.merge(super)
  else
    super
  end
end