activemodel 6.1.3.2 → 6.1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +44 -0
- data/lib/active_model/dirty.rb +5 -0
- data/lib/active_model/gem_version.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d156ed41186e34927be115d635558f84ca15bb7b42db1be1d83ddbee45d0a8d
|
4
|
+
data.tar.gz: f056e2870b3103a63365f2be56af31307505b7e29b75f48d9ec4fe44ef621e0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfae9c85b3bb3c12e039eb5c4ff36635eda2f53718c29bb2d58299c77a85ef4d8fea7dfdafd8950a92fb242c40549762001ea9850b4586f8bf0b85932c3774b
|
7
|
+
data.tar.gz: 78ad4a85c901ed779050a42a7df607e65c9eb708273f38cfe42f5d273834ccd644a499f51221fdd00b0272eb93e28d60b56915e80bc8ab5d77ac03ab20dca32e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,47 @@
|
|
1
|
+
## Rails 6.1.4.7 (March 08, 2022) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 6.1.4.6 (February 11, 2022) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 6.1.4.5 (February 11, 2022) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Rails 6.1.4.4 (December 15, 2021) ##
|
17
|
+
|
18
|
+
* No changes.
|
19
|
+
|
20
|
+
|
21
|
+
## Rails 6.1.4.3 (December 14, 2021) ##
|
22
|
+
|
23
|
+
* No changes.
|
24
|
+
|
25
|
+
|
26
|
+
## Rails 6.1.4.2 (December 14, 2021) ##
|
27
|
+
|
28
|
+
* No changes.
|
29
|
+
|
30
|
+
|
31
|
+
## Rails 6.1.4.1 (August 19, 2021) ##
|
32
|
+
|
33
|
+
* No changes.
|
34
|
+
|
35
|
+
|
36
|
+
## Rails 6.1.4 (June 24, 2021) ##
|
37
|
+
|
38
|
+
* Fix `to_json` for `ActiveModel::Dirty` object.
|
39
|
+
|
40
|
+
Exclude +mutations_from_database+ attribute from json as it lead to recursion.
|
41
|
+
|
42
|
+
*Anil Maurya*
|
43
|
+
|
44
|
+
|
1
45
|
## Rails 6.1.3.2 (May 05, 2021) ##
|
2
46
|
|
3
47
|
* No changes.
|
data/lib/active_model/dirty.rb
CHANGED
@@ -139,6 +139,11 @@ module ActiveModel
|
|
139
139
|
@mutations_from_database = nil
|
140
140
|
end
|
141
141
|
|
142
|
+
def as_json(options = {}) # :nodoc:
|
143
|
+
options[:except] = [options[:except], "mutations_from_database"].flatten
|
144
|
+
super(options)
|
145
|
+
end
|
146
|
+
|
142
147
|
# Clears dirty data and moves +changes+ to +previous_changes+ and
|
143
148
|
# +mutations_from_database+ to +mutations_before_last_save+ respectively.
|
144
149
|
def changes_applied
|
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.4.7
|
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:
|
11
|
+
date: 2022-03-08 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.4.7
|
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.4.7
|
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.
|
108
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
107
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.4.7/activemodel/CHANGELOG.md
|
108
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.4.7/
|
109
109
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
110
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
110
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.4.7/activemodel
|
111
111
|
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.1.
|
126
|
+
rubygems_version: 3.1.6
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: A toolkit for building modeling frameworks (part of Rails).
|