Merge pull request #822 from internetee/registry-231

Remove logging on activerecord validation
This commit is contained in:
Timo Võhmar 2018-04-13 17:20:34 +03:00 committed by GitHub
commit 72c4fd6171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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