activemodel 6.1.2 → 6.1.4

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: '08df17982afa4c16f01d3f9c07f60cc5817641626e071a40d6b9a3765672ba4a'
4
- data.tar.gz: 51909d78d21a89d88a27278f6f19a7f97971c78d058be06261431f141e0c7392
3
+ metadata.gz: e4c60859ba62fdb88e69492cc1ee5788a0d8a57e51c483348c079f6fec17629f
4
+ data.tar.gz: a9714409e2bb586260f213472dad9c7f91d2e6d03799931c27543116397fe5f6
5
5
  SHA512:
6
- metadata.gz: b1968baa6cfe661631c0036dc4e544272f7ca3d1b136e93afa77e3c6c78605ce3c05196df85862f9a03eb612cb32ca65aacd392f0a13c6ecd58b0c9ae452fa3a
7
- data.tar.gz: e038c7e4cad1354ce7a763e43b003a02b0470343494fbe0da45070c8f205d2f0bef4c3f9900fc492dc588b5a6331fc2bdc2b044d450e3a266cc32c502d98f00b
6
+ metadata.gz: 1c55bc3c301f001842595688b4b9f3e6448306ea0df795b4981d2e070a7052848c53e1b6d50eba905a83ebafe154e357ea0fba1b4543585d2e179685d1a46f64
7
+ data.tar.gz: 953a5dee9d6017155202ac7f5bb22da216afab18910bd8259029f7d3e31b714d2cd5b7248cf0fcaf737dc1214496044403b0f1315756117595b99ec3e57cf446
data/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## Rails 6.1.4 (June 24, 2021) ##
2
+
3
+ * Fix `to_json` for `ActiveModel::Dirty` object.
4
+
5
+ Exclude +mutations_from_database+ attribute from json as it lead to recursion.
6
+
7
+ *Anil Maurya*
8
+
9
+
10
+ ## Rails 6.1.3.2 (May 05, 2021) ##
11
+
12
+ * No changes.
13
+
14
+
15
+ ## Rails 6.1.3.1 (March 26, 2021) ##
16
+
17
+ * No changes.
18
+
19
+
20
+ ## Rails 6.1.3 (February 17, 2021) ##
21
+
22
+ * No changes.
23
+
24
+
25
+ ## Rails 6.1.2.1 (February 10, 2021) ##
26
+
27
+ * No changes.
28
+
29
+
1
30
  ## Rails 6.1.2 (February 09, 2021) ##
2
31
 
3
32
  * No changes.
@@ -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
@@ -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 `:invalid` unless specified
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 `errors#add`
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 `errors#add`
126
+ # The options provided when calling +errors#add+
127
127
  attr_reader :options
128
128
 
129
129
  # Returns the error message.
@@ -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 `override_options`.
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
@@ -9,7 +9,7 @@ module ActiveModel
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 2
12
+ TINY = 4
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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.2
4
+ version: 6.1.4
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-09 00:00:00.000000000 Z
11
+ date: 2021-06-24 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.2
19
+ version: 6.1.4
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.2
26
+ version: 6.1.4
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.2/activemodel/CHANGELOG.md
108
- documentation_uri: https://api.rubyonrails.org/v6.1.2/
107
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.4/activemodel/CHANGELOG.md
108
+ documentation_uri: https://api.rubyonrails.org/v6.1.4/
109
109
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
110
- source_code_uri: https://github.com/rails/rails/tree/v6.1.2/activemodel
111
- post_install_message:
110
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.4/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.2.3
127
- signing_key:
126
+ rubygems_version: 3.1.2
127
+ signing_key:
128
128
  specification_version: 4
129
129
  summary: A toolkit for building modeling frameworks (part of Rails).
130
130
  test_files: []