module FormtasticBootstrap::Inputs::Base::Html

Public Instance Methods

form_control_input_html_options() click to toggle source
# File lib/formtastic-bootstrap/inputs/base/html.rb, line 8
def form_control_input_html_options
  orig_class = input_html_options[:class]
  new_class = [orig_class, "form-control"].compact.join(" ")
  input_html_options.merge(:class => new_class)
end
input_html_options() click to toggle source
Calls superclass method
# File lib/formtastic-bootstrap/inputs/base/html.rb, line 14
def input_html_options
  if errors?
    {
      :class => "error"
    }.merge(super)
  else
    super
  end
end