Skip to content

Commit 520ed22

Browse files
committed
read_collection should fixup data in place if it's an ActiveRecord::Relation
1 parent 35b2c39 commit 520ed22

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/namespaced_env_cache.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def read_collection(name, **opts)
9797

9898
if data.is_a?(ActiveRecord::Relation)
9999
data = NamespacedEnvCache.normalize_collection(data)
100+
write_collection_data(name, data, **opts)
100101
end
101102

102103
type = data.slice!(0)

0 commit comments

Comments
 (0)