Module: ClientSideValidations::Formtastic::Helpers::InputHelper

Defined in:
lib/client_side_validations/formtastic/helpers/input_helper.rb

Instance Method Summary collapse

Instance Method Details

#input(method, options = {}) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/client_side_validations/formtastic/helpers/input_helper.rb', line 2

def input(method, options = {})
  if options.key?(:validate)
    options[:input_html] ||= {}
    options[:input_html].merge!(:validate => options[:validate])
    options.delete(:validate)
  end
  super(method, options)
end