21 lines
405 B
Ruby
21 lines
405 B
Ruby
|
class StringInput < SimpleForm::Inputs::StringInput
|
||
|
def input
|
||
|
"<section>#{super}</section>".html_safe
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class NumericInput < SimpleForm::Inputs::NumericInput
|
||
|
def input
|
||
|
"<section>#{super}</section>".html_safe
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class CustomizedInput < SimpleForm::Inputs::StringInput
|
||
|
def input
|
||
|
"<section>#{super}</section>".html_safe
|
||
|
end
|
||
|
|
||
|
def input_method
|
||
|
:text_field
|
||
|
end
|
||
|
end
|