Files
fetsite/app/inputs/date_string_input.rb
2013-08-10 14:27:15 +02:00

7 lines
200 B
Ruby

class DateStringInput < FormtasticBootstrap::Inputs::StringInput
def input_html_options
super.merge(:class => "datetext", :onclick =>"beep", :value=>I18n.l(@object.send(method.to_sym)))
end
end