heartcombo--simple_form/lib/simple_form/components/label_input.rb

16 lines
322 B
Ruby
Raw Normal View History

module SimpleForm
module Components
module LabelInput
2011-09-03 12:40:47 +00:00
extend ActiveSupport::Concern
included do
include SimpleForm::Components::Labels
end
def label_input(context=nil)
options[:label] == false ? input(context) : (label(context) + input(context))
end
end
end
2011-09-03 12:40:47 +00:00
end