client_side_validations 14.0.0 → 14.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5c9471ead88623636e67b2739d7023914e67b789ca4659915bcbc9ea358f28a
|
4
|
+
data.tar.gz: 03c2dd843617e824396db7d0ab8d8d6a7b59ea07f9d9142ec98d52f35bbfed35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f3a31758f2fa420a93068a54ec0e14b3c67e81fcb9786255fafd9967c393d19ca2982c6cfeeaf89397a7a4a703da564831a8428c6fd29acba7440fea77bbae
|
7
|
+
data.tar.gz: 6bf5bdac6d52f6efc89fb765c5b993bf0b6678c11d6f290225906047a4ecae7ce1e1adc48c68bb26ccab8baa187880365b910a576d46dad85b30d1dad5027988
|
data/CHANGELOG.md
CHANGED
@@ -18,7 +18,14 @@ module ClientSideValidations
|
|
18
18
|
private
|
19
19
|
|
20
20
|
def build_client_side_hash(model, attribute, options)
|
21
|
-
|
21
|
+
callbacks_options =
|
22
|
+
if Rails.version >= '6.1'
|
23
|
+
::ActiveModel::Error::CALLBACKS_OPTIONS
|
24
|
+
else
|
25
|
+
::ActiveModel::Errors::CALLBACKS_OPTIONS
|
26
|
+
end
|
27
|
+
|
28
|
+
{ message: model.errors.generate_message(attribute, message_type, options) }.merge(options.except(*callbacks_options - %i[allow_blank if unless]))
|
22
29
|
end
|
23
30
|
|
24
31
|
def message_type
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
/*!
|
3
|
-
* Client Side Validations - v14.
|
3
|
+
* Client Side Validations - v14.1.0 (https://github.com/DavyJonesLocker/client_side_validations)
|
4
4
|
* Copyright (c) 2019 Geremia Taglialatela, Brian Cardarella
|
5
5
|
* Licensed under MIT (http://opensource.org/licenses/mit-license.php)
|
6
6
|
*/
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_side_validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geremia Taglialatela
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,9 +18,9 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 5.0.0.1
|
21
|
-
- - "
|
21
|
+
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 6.
|
23
|
+
version: '6.1'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,9 +28,9 @@ dependencies:
|
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: 5.0.0.1
|
31
|
-
- - "
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 6.
|
33
|
+
version: '6.1'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: jquery-rails
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|