active_model_serializers 0.10.15 → 0.10.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73410f3d582bb13e0defcc9307f99db6ac93aa10fe932e6143fc1de8607f4353
4
- data.tar.gz: 02fb3af2ac4e0e934d0ed1671f29bf75a31b55c59c1c9b0174110c124ca84945
3
+ metadata.gz: 8cdd0b3976839d4440272bffdeb4acac4029cec689a3ce027d903b47a58653f1
4
+ data.tar.gz: 77cdf909e0e753840a0500fa10fde3eb372a7690dca150c4237387b6e6fb4583
5
5
  SHA512:
6
- metadata.gz: '088a11c94eec3f4ab853733bd24e23718c775523ad3b39edeb7a7f2b82de75cb8b34c8f5ea5d8f662a17a15ec5358d503233a157123924ce89fd574bcb3719ca'
7
- data.tar.gz: c762792c1af5084fe4d56172ab216a5bc166765ff4df7e440f855282dbd6003f3738134ed3fae34ac4ca8b05baa10064a0b021f1c0c4013258ceebb71bfb6fe9
6
+ metadata.gz: ef0cacdcd276a12bdbe52fa6d10942050d44d651c40b7d9e3dcf7c28d8ddceb3d68bcee9432860ef7c25853395d23d6cfd6fa9aef4c689b35d47942c9adb4f80
7
+ data.tar.gz: 7af99806ceaa3b440d2f41238b60baf7e19a053c501bbc879f118e70de016c3d3c2d91ad544db386f36147b1d5668f25f42a6b81558cbbad320649e1b02ce417
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## 0.10.x
2
2
 
3
- ### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.15...0-10-stable)
3
+ ### [master (unreleased)](https://github.com/rails-api/active_model_serializers/compare/v0.10.16...0-10-stable)
4
4
 
5
5
  Breaking changes:
6
6
 
@@ -10,6 +10,12 @@ Fixes:
10
10
 
11
11
  Misc:
12
12
 
13
+ ### [v0.10.16 (2025-12-05)](https://github.com/rails-api/active_model_serializers/compare/v0.10.15...v0.10.16)
14
+
15
+ Misc:
16
+ - [#2492](https://github.com/rails-api/active_model_serializers/pull/2492) Remove use of ActiveSupport::Configurable (@t27duck)
17
+ - [#2495](https://github.com/rails-api/active_model_serializers/pull/2495) Fix changing config in subclass having global effect (@janko)
18
+
13
19
  ### [v0.10.15 (2024-11-30)](https://github.com/rails-api/active_model_serializers/compare/v0.10.14...v0.10.15)
14
20
 
15
21
  Fixes:
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveModel
4
4
  class Serializer
5
- VERSION = '0.10.15'.freeze
5
+ VERSION = '0.10.16'.freeze
6
6
  end
7
7
  end
@@ -13,6 +13,9 @@ require 'active_model/serializer/lint'
13
13
  # reified when subclassed to decorate a resource.
14
14
  module ActiveModel
15
15
  class Serializer
16
+ class_attribute :config
17
+ self.config = ActiveSupport::OrderedOptions.new
18
+
16
19
  undef_method :select, :display # These IO methods, which are mixed into Kernel,
17
20
  # sometimes conflict with attribute names. We don't need these IO methods.
18
21
 
@@ -30,7 +33,6 @@ module ActiveModel
30
33
  autoload :HasOneReflection
31
34
  autoload :HasManyReflection
32
35
  end
33
- include ActiveSupport::Configurable
34
36
  include Caching
35
37
 
36
38
  # @param resource [ActiveRecord::Base, ActiveModelSerializers::Model]
@@ -190,6 +192,7 @@ module ActiveModel
190
192
  base._attributes_data = _attributes_data.dup
191
193
  base._reflections = _reflections.dup
192
194
  base._links = _links.dup
195
+ base.config = ActiveSupport::InheritableOptions.new(config)
193
196
  end
194
197
 
195
198
  # @return [Array<Symbol>] Key names of declared attributes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model_serializers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.15
4
+ version: 0.10.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Klabnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-01 00:00:00.000000000 Z
11
+ date: 2025-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel