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/test/discovery_inputs.rb
2011-04-27 21:27:50 +02:00

21 lines
No EOL
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