use custom validator until validation errors are present in UI

This commit is contained in:
Georg Kahest 2017-10-23 12:13:36 +03:00
parent d520b5b157
commit 9293d0996a

View file

@ -0,0 +1,8 @@
# 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