13 lines
265 B
Ruby
13 lines
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
|