Sha256: a1a867e29b88500a96ff773fb93c3f3c686b8be63aa509ace1c477762c067d80
Contents?: true
Size: 999 Bytes
Versions: 10
Compression:
Stored size: 999 Bytes
Contents
# ClientSideValidations Initializer # Disabled validators. The uniqueness validator is disabled by default for security issues. Enable it on your own responsibility! # ClientSideValidations::Config.disabled_validators = [:uniqueness] # 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.new do |html_tag, instance| if html_tag =~ /^<label/ html_tag.html_safe else %( <div class="input-block__field-with-errors"> #{html_tag} <label for="#{instance.send(:tag_id)}" class="input-block__error-message"> #{instance.error_message.first} </label> </div> ).html_safe end end
Version data entries
10 entries across 10 versions & 1 rubygems