Sha256: c508e8cba537acbfd3579c687060a9c5dd791ff7d767f295e2f6d9694c69e2a1

Contents?: true

Size: 875 Bytes

Versions: 142

Compression:

Stored size: 875 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

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.0.147 config/initializers/client_side_validations.rb
renalware-core-2.0.146 config/initializers/client_side_validations.rb
renalware-core-2.0.145 config/initializers/client_side_validations.rb
renalware-core-2.0.144 config/initializers/client_side_validations.rb
renalware-core-2.0.143 config/initializers/client_side_validations.rb
renalware-core-2.0.142 config/initializers/client_side_validations.rb
renalware-core-2.0.141 config/initializers/client_side_validations.rb
renalware-core-2.0.140 config/initializers/client_side_validations.rb
renalware-core-2.0.139 config/initializers/client_side_validations.rb
renalware-core-2.0.138 config/initializers/client_side_validations.rb
renalware-core-2.0.137 config/initializers/client_side_validations.rb
renalware-core-2.0.136 config/initializers/client_side_validations.rb
renalware-core-2.0.135 config/initializers/client_side_validations.rb
renalware-core-2.0.134 config/initializers/client_side_validations.rb
renalware-core-2.0.133 config/initializers/client_side_validations.rb
renalware-core-2.0.132 config/initializers/client_side_validations.rb
renalware-core-2.0.131 config/initializers/client_side_validations.rb
renalware-core-2.0.130 config/initializers/client_side_validations.rb
renalware-core-2.0.129 config/initializers/client_side_validations.rb
renalware-core-2.0.128 config/initializers/client_side_validations.rb