Module: ClientSideValidations::Formtastic::Inputs::BooleanInput

Defined in:
lib/client_side_validations/formtastic/inputs/boolean_input.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
# File 'lib/client_side_validations/formtastic/inputs/boolean_input.rb', line 2

def self.included(base)
  base.class_eval do
    alias_method_chain :check_box_html, :client_side_validations_formtastic
  end
end

Instance Method Details

#check_box_html_with_client_side_validations_formtasticObject



8
9
10
11
# File 'lib/client_side_validations/formtastic/inputs/boolean_input.rb', line 8

def check_box_html_with_client_side_validations_formtastic
  builder.send(:build_validation_options, method, options)
  check_box_html_without_client_side_validations_formtastic
end