Sha256: de0626f5ed3fb5b001d772ce3835bb386dec6450234d832143de8237b60b45c7
Contents?: true
Size: 981 Bytes
Versions: 11
Compression:
Stored size: 981 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| # unless html_tag =~ /^<label/ # %{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" # class="message">#{instance.error_message.first}</label></div>}.html_safe # else # %{<div class="field_with_errors">#{html_tag}</div>}.html_safe # end # end
Version data entries
11 entries across 11 versions & 1 rubygems