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,8 +117,10 @@ class GeoNode < ActiveRecord::Base ...@@ -117,8 +117,10 @@ class GeoNode < ActiveRecord::Base
end end
def build_dependents def build_dependents
self.build_geo_node_key if geo_node_key.nil? unless persisted?
update_system_hook! self.build_geo_node_key if geo_node_key.nil?
update_system_hook!
end
end end
def update_dependents_attributes def update_dependents_attributes
......
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