activemodel 6.1.2.1 → 6.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/active_model/error.rb +3 -3
- data/lib/active_model/errors.rb +1 -1
- data/lib/active_model/gem_version.rb +2 -2
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c76c877a2ad6e39c8f29713e55c598f757347ba5ba9fe3df8ac63478107bca6
|
4
|
+
data.tar.gz: d21f47ccc1141993b518fcd4a0ee209d435d8d4cca9e97857c70307de66e2d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ae9b75bb64cd8956d2399952b9ed053c8aff744a885d61d3039cf1bccec1b40bdd02a50a6bb79203d0c85c01d8b3abb8f04eaeca7f12380c75733853042414f
|
7
|
+
data.tar.gz: 39b87488692438059cce4e0490269820fd940783287ab5e5a3b9b14207314063b7b4fa65c9a060863ae1def760b83e28ecfeff7734c02b10d4b356b2096a17d7
|
data/CHANGELOG.md
CHANGED
data/lib/active_model/error.rb
CHANGED
@@ -119,11 +119,11 @@ module ActiveModel
|
|
119
119
|
attr_reader :base
|
120
120
|
# The attribute of +base+ which the error belongs to
|
121
121
|
attr_reader :attribute
|
122
|
-
# The type of error, defaults to
|
122
|
+
# The type of error, defaults to +:invalid+ unless specified
|
123
123
|
attr_reader :type
|
124
|
-
# The raw value provided as the second parameter when calling
|
124
|
+
# The raw value provided as the second parameter when calling +errors#add+
|
125
125
|
attr_reader :raw_type
|
126
|
-
# The options provided when calling
|
126
|
+
# The options provided when calling +errors#add+
|
127
127
|
attr_reader :options
|
128
128
|
|
129
129
|
# Returns the error message.
|
data/lib/active_model/errors.rb
CHANGED
@@ -110,7 +110,7 @@ module ActiveModel
|
|
110
110
|
# Imports one error
|
111
111
|
# Imported errors are wrapped as a NestedError,
|
112
112
|
# providing access to original error object.
|
113
|
-
# If attribute or type needs to be overridden, use
|
113
|
+
# If attribute or type needs to be overridden, use +override_options+.
|
114
114
|
#
|
115
115
|
# override_options - Hash
|
116
116
|
# @option override_options [Symbol] :attribute Override the attribute the error belongs to
|
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.
|
4
|
+
version: 6.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 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.
|
19
|
+
version: 6.1.3
|
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.
|
26
|
+
version: 6.1.3
|
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,11 +104,11 @@ 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.
|
108
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
107
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.3/activemodel/CHANGELOG.md
|
108
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.3/
|
109
109
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
110
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
111
|
-
post_install_message:
|
110
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.3/activemodel
|
111
|
+
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|
114
114
|
- lib
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
-
signing_key:
|
126
|
+
rubygems_version: 3.2.3
|
127
|
+
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: A toolkit for building modeling frameworks (part of Rails).
|
130
130
|
test_files: []
|