Module: SimpleForm::Components::LabelInput

Included in:
Inputs::Base
Defined in:
lib/simple_form/components/label_input.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/simple_form/components/label_input.rb', line 4

def self.included(base)
  base.send :include, SimpleForm::Components::Labels
end

Instance Method Details

#label_inputObject



8
9
10
# File 'lib/simple_form/components/label_input.rb', line 8

def label_input
  (options[:label] == false ? "" : label) + input
end