Module: ClientSideValidations::Formtastic::FormBuilder

Defined in:
lib/client_side_validations/formtastic/form_builder.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/client_side_validations/formtastic/form_builder.rb', line 5

def self.included(base)
  base.class_eval do
    def client_side_form_settings(options, form_helper)
      {
        :type => self.class.to_s,
        :inline_error_class => ::Formtastic::FormBuilder.default_inline_error_class
      }
    end
  end
end