Commit c6534317 authored by Douwe Maan's avatar Douwe Maan

Merge branch '1827-dont-load-dependents-on-fetch' into 'master'

Geo: Don't load dependent models when fetching an existing GeoNode from the database

Closes #1827

See merge request !1348
parents 79accad5 129d620d
......@@ -117,8 +117,10 @@ class GeoNode < ActiveRecord::Base
end
def build_dependents
self.build_geo_node_key if geo_node_key.nil?
update_system_hook!
unless persisted?
self.build_geo_node_key if geo_node_key.nil?
update_system_hook!
end
end
def update_dependents_attributes
......
---
title: 'Geo: Don''t load dependent models when fetching an existing GeoNode from the
database'
merge_request: 1348
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment