Module: FlexaFormtasticBootstrap::Inputs::Base::Html

Includes:
Formtastic::Inputs::Base::Html
Included in:
FlexaFormtasticBootstrap::Inputs::Base
Defined in:
lib/flexa_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/flexa_formtastic_bootstrap/inputs/base/html.rb', line 8

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