Minor fixes

pull/15776/head
Alberto Miedes Garcés 4 years ago
parent 61ce2e71e3
commit 19c657f54b

@ -249,7 +249,7 @@ module Carto::UserCommons
viewer ? 'viewer' : 'builder'
end
# pending to replace .to_hash with .to_h, and monkeypatch Sequel model to respond to attributes
# TODO: replace .to_hash with .to_h, and monkeypatch Sequel model to respond to :attributes
def logging_attrs
if self.respond_to?(:attributes)
# AR

@ -41,7 +41,7 @@ module Carto
# For example, if layer SQL contains wrong SQL (uses a table that doesn't exist, or uses an invalid operator).
# This warning level is checked in tests to ensure that embed view does not need user DB connection,
# so we need to keep it (or change the tests accordingly)
log_warning(message: 'Could not retrieve tables from query', exception: e, current_user: user, layer: self.attributes)
log_warning(message: 'Could not retrieve tables from query', exception: e, current_user: user, layer: attributes)
[]
end

Loading…
Cancel
Save