Sha256: b99ade048e69424464d9963b2a638619fda9fa2a67b173e0d0bbf28f3173e645
Contents?: true
Size: 874 Bytes
Versions: 65
Compression:
Stored size: 874 Bytes
Contents
# frozen_string_literal: true # ClientSideValidations Initializer # Disabled validators # ClientSideValidations::Config.disabled_validators = [] # Uncomment to validate number format with current I18n locale # ClientSideValidations::Config.number_format_with_locale = true # Uncomment the following block if you want each input field to have the validation messages attached. # # Note: client_side_validation requires the error to be encapsulated within # <label for="#{instance.send(:tag_id)}" class="message"></label> # # ActionView::Base.field_error_proc = proc do |html_tag, instance| # if html_tag =~ /^<label/ # %(<div class="field_with_errors">#{html_tag}</div>).html_safe # else # %(<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>).html_safe # end # end
Version data entries
65 entries across 65 versions & 2 rubygems