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.
1 parent 17d0e6b commit a39794dCopy full SHA for a39794d
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
@@ -11,7 +11,8 @@ def reflection_options
end
def object
- @object ||= reflection.value(
+ return @object if defined?(@object)
15
+ @object = reflection.value(
16
association_options.fetch(:parent_serializer),
17
association_options.fetch(:include_slice)
18
)
0 commit comments