Module: ClientSideValidations::SimpleForm::FormBuilder

Defined in:
lib/client_side_validations/simple_form.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/client_side_validations/simple_form.rb', line 5

def self.included(base)
  base.class_eval do
    def self.client_side_form_settings(options, form_helper)
      {
        :type => self.to_s,
        :error_class => ::SimpleForm.error_class,
        :error_tag => ::SimpleForm.error_tag,
        :wrapper_error_class => ::SimpleForm.wrapper_error_class,
        :wrapper_tag => ::SimpleForm.wrapper_tag
      }
    end
  end
end