Fix missing logger for models class methods

pull/15824/head
Alberto Miedes Garcés 4 years ago
parent cf27b50f71
commit f25bcd2b57

@ -20,6 +20,7 @@ Development
* Remove usage of `::User` Sequel model from the `ApplicationController` [#15804](https://github.com/CartoDB/cartodb/pull/15804)
* Bump version of cartodb-common module to v0.3.6 [#15820](https://github.com/CartoDB/cartodb/pull/15820)
* Setup Coverband dead code detector [https://github.com/CartoDB/cartodb/pull/15811](https://github.com/CartoDB/cartodb/pull/15811)
* Include LoggerHelper as class methods in models [https://github.com/CartoDB/cartodb/pull/15824](https://github.com/CartoDB/cartodb/pull/15824)
4.41.1 (2020-09-03)
-------------------

@ -1,5 +1,12 @@
Carto::Common::Logger.install
# Log more easily from all models
ActiveRecord::Base.class_eval { include ::LoggerHelper }
Sequel::Model.class_eval { include ::LoggerHelper }
ActiveRecord::Base.class_eval do
include ::LoggerHelper
extend ::LoggerHelper
end
Sequel::Model.class_eval do
include ::LoggerHelper
extend ::LoggerHelper
end

Loading…
Cancel
Save