Commit 8d85935c authored by Nick Thomas's avatar Nick Thomas

Merge branch 'sh-geo-check-url-column-check' into 'master'

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

Closes #4214

See merge request gitlab-org/gitlab-ee!3608
parents a930a04b ad5ad30c
......@@ -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