activemodel 4.2.3 → 4.2.4.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activemodel might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_model/gem_version.rb +2 -2
- data/lib/active_model/validations.rb +5 -2
- data/lib/active_model/validations/callbacks.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4814e1f1a95a10bd6d0eca4ebe7f1e2bdbb81a6e
|
4
|
+
data.tar.gz: 7b4a28408fc0ec79a82ef8ccbe320db3ecb37e08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd247377c44777ad90fbb2c14dacc1f60a6426207bdffb99a9f2103b2b0774858faffc6b285b059f91bea62340d68e487b556615295a791e7afe82179095f037
|
7
|
+
data.tar.gz: 0305ee477406298527e016f0c98f85676f21bcb2e1ae380de20c66c113b97f0894bcf1a68c5155c3c85bf44bdc9ef509eb97f01c2a1c4c60a6702170c9048dd4
|
data/CHANGELOG.md
CHANGED
@@ -87,7 +87,7 @@ module ActiveModel
|
|
87
87
|
validates_with BlockValidator, _merge_attributes(attr_names), &block
|
88
88
|
end
|
89
89
|
|
90
|
-
VALID_OPTIONS_FOR_VALIDATE = [:on, :if, :unless, :prepend].freeze
|
90
|
+
VALID_OPTIONS_FOR_VALIDATE = [:on, :if, :unless, :prepend].freeze # :nodoc:
|
91
91
|
|
92
92
|
# Adds a validation method or block to the class. This is useful when
|
93
93
|
# overriding the +validate+ instance method becomes too unwieldy and
|
@@ -129,6 +129,9 @@ module ActiveModel
|
|
129
129
|
# end
|
130
130
|
# end
|
131
131
|
#
|
132
|
+
# Note that the return value of validation methods is not relevant.
|
133
|
+
# It's not possible to halt the validate callback chain.
|
134
|
+
#
|
132
135
|
# Options:
|
133
136
|
# * <tt>:on</tt> - Specifies the contexts where this validation is active.
|
134
137
|
# Runs in all validation contexts by default (nil). You can pass a symbol
|
@@ -392,7 +395,7 @@ module ActiveModel
|
|
392
395
|
protected
|
393
396
|
|
394
397
|
def run_validations! #:nodoc:
|
395
|
-
|
398
|
+
_run_validate_callbacks
|
396
399
|
errors.empty?
|
397
400
|
end
|
398
401
|
end
|
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: 4.2.
|
4
|
+
version: 4.2.4.rc1
|
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: 2015-
|
11
|
+
date: 2015-08-14 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: 4.2.
|
19
|
+
version: 4.2.4.rc1
|
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: 4.2.
|
26
|
+
version: 4.2.4.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,13 +99,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: 1.9.3
|
100
100
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
104
|
+
version: 1.3.1
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.4.
|
107
|
+
rubygems_version: 2.4.7
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: A toolkit for building modeling frameworks (part of Rails).
|
111
111
|
test_files: []
|
112
|
+
has_rdoc:
|