Commit ad5ad30c authored by Stan Hu's avatar Stan Hu

Check that the "url" column exists in the GeoNode table before attempting to use it

Closes #4214
parent ccddf64f
......@@ -54,6 +54,8 @@ class GeoNode < ActiveRecord::Base
end
def current_node
return unless column_names.include?('url')
GeoNode.find_by(url: current_node_url)
end
end
......
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