Module: FlexaFormtasticBootstrap::Inputs::Base::Labelling

Includes:
Formtastic::Inputs::Base::Labelling
Included in:
FlexaFormtasticBootstrap::Inputs::Base
Defined in:
lib/flexa_formtastic_bootstrap/inputs/base/labelling.rb

Instance Method Summary collapse

Instance Method Details

#label_html_optionsObject



8
9
10
11
12
13
# File 'lib/flexa_formtastic_bootstrap/inputs/base/labelling.rb', line 8

def label_html_options
  {}.tap do |opts|
    opts[:for] ||= input_html_options[:id]
    opts[:class] = [opts[:class]]
  end
end