1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/lib/simple_form/components/label_input.rb

13 lines
No EOL
265 B
Ruby

module SimpleForm
module Components
module LabelInput
def self.included(base)
base.send :include, SimpleForm::Components::Labels
end
def label_input
(options[:label] == false ? "" : label) + input
end
end
end
end