Commit d67a7a42 authored by Gabriel Mazetto's avatar Gabriel Mazetto

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

parent c601ca55
......@@ -117,9 +117,11 @@ class GeoNode < ActiveRecord::Base
end
def build_dependents
unless persisted?
self.build_geo_node_key if geo_node_key.nil?
update_system_hook!
end
end
def update_dependents_attributes
self.geo_node_key&.title = "Geo node: #{self.url}"
......
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