Sha256: d1b3252d28d9fcb50c0ec2c0057e23d1102c457224c4595166166ef0d3f5f8dd

Contents?: true

Size: 844 Bytes

Versions: 15

Compression:

Stored size: 844 Bytes

Contents

# 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

15 entries across 15 versions & 2 rubygems

Version Path
mvpkit-2.0.2 project/config/initializers/client_side_validations.rb
mvpkit-2.0.1 project/config/initializers/client_side_validations.rb
mvpkit-2.0.0 project/config/initializers/client_side_validations.rb
mvpkit-1.1.2 project/config/initializers/client_side_validations.rb
mvpkit-1.1.1 project/config/initializers/client_side_validations.rb
mvpkit-1.1.0 project/config/initializers/client_side_validations.rb
mvpkit-1.0.4 project/config/initializers/client_side_validations.rb
mvpkit-1.0.3 project/config/initializers/client_side_validations.rb
mvpkit-1.0.2 project/config/initializers/client_side_validations.rb
mvpkit-1.0.1 project/config/initializers/client_side_validations.rb
mvpkit-1.0.0 project/config/initializers/client_side_validations.rb
client_side_validations-9.1.0 lib/generators/templates/client_side_validations/initializer.rb
client_side_validations-9.0.1 lib/generators/templates/client_side_validations/initializer.rb
client_side_validations-9.0.0 lib/generators/templates/client_side_validations/initializer.rb
client_side_validations-8.0.2 lib/generators/templates/client_side_validations/initializer.rb