We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9939d54 + a39794d commit c6c3927Copy full SHA for c6c3927
CHANGELOG.md
@@ -8,6 +8,7 @@ Features:
8
9
Fixes:
10
11
+- [#2307](https://github.com/rails-api/active_model_serializers/pull/2307) Falsey attribute values should not be reevaluated.
12
13
Misc:
14
lib/active_model/serializer/lazy_association.rb
@@ -13,7 +13,8 @@ def reflection_options
end
15
def object
16
- @object ||= reflection.value(
+ return @object if defined?(@object)
17
+ @object = reflection.value(
18
association_options.fetch(:parent_serializer),
19
association_options.fetch(:include_slice)
20
)
0 commit comments