Remove logging on activerecord validation

#231
This commit is contained in:
Artur Beljajev 2018-03-26 07:21:54 +03:00
parent cee51e1ac5
commit 18449b7ef3

View file

@ -1,8 +0,0 @@
# Log all user issues raised by active record
# rubocop: disable Metrics/LineLength
class ActiveRecord::Base
after_validation do |m|
Rails.logger.info "USER MSG: ACTIVERECORD: #{m.class} ##{m.id} #{m.errors.full_messages} #{m.errors['epp_errors']}" if m.errors.present?
true
end
end