activemodel 6.1.0.rc1 → 6.1.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_model/attributes.rb +1 -1
- data/lib/active_model/gem_version.rb +1 -1
- data/lib/active_model/validations.rb +4 -4
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73897389085a337d37fd217732c23d639014f9ef7bba9928553000d40826838c
|
4
|
+
data.tar.gz: 1451352712ab5c35dc23e010aa7cd6eeb4aa720966a9632b738a2840f3215b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60de09baec917855aef1dbb43cd18aa50c79ef1ce1a7984a585677a9b13dba4aa5305eb7404db02076b6dd4189364d20ac0025084927544a1fea7e945d1cd3b
|
7
|
+
data.tar.gz: 186b7fa9b0cf4c20777ffcafefba10372d7a919a5b33df2e650cfae6febee16a9031b0bdacd39b2cfd5d1c388644fee41cb8d6e587b20dbfa896a424466c33e1
|
data/CHANGELOG.md
CHANGED
@@ -163,10 +163,10 @@ module ActiveModel
|
|
163
163
|
if options.key?(:on)
|
164
164
|
options = options.dup
|
165
165
|
options[:on] = Array(options[:on])
|
166
|
-
options[:if] =
|
167
|
-
|
168
|
-
|
169
|
-
|
166
|
+
options[:if] = [
|
167
|
+
->(o) { !(options[:on] & Array(o.validation_context)).empty? },
|
168
|
+
*options[:if]
|
169
|
+
]
|
170
170
|
end
|
171
171
|
|
172
172
|
set_callback(:validate, *args, options, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activemodel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.0.
|
4
|
+
version: 6.1.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.1.0.
|
19
|
+
version: 6.1.0.rc2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.1.0.
|
26
|
+
version: 6.1.0.rc2
|
27
27
|
description: A toolkit for building modeling frameworks like Active Record. Rich support
|
28
28
|
for attributes, callbacks, validations, serialization, internationalization, and
|
29
29
|
testing.
|
@@ -104,10 +104,10 @@ licenses:
|
|
104
104
|
- MIT
|
105
105
|
metadata:
|
106
106
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
107
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.0.
|
108
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.0.
|
107
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.0.rc2/activemodel/CHANGELOG.md
|
108
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.0.rc2/
|
109
109
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
110
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.0.
|
110
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.0.rc2/activemodel
|
111
111
|
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|