Sha256: e8cd1f6d66f7cb18615c7abc212daec8319c37e901ff80d143317de3c2efc6e3
Contents?: true
Size: 440 Bytes
Versions: 53
Compression:
Stored size: 440 Bytes
Contents
module Rollbar module ActiveRecordExtension extend ActiveSupport::Concern def report_validation_errors_to_rollbar self.errors.full_messages.each do |error| Rollbar.log_info "[Rollbar] Reporting form validation error: #{error} for #{self.to_s}" Rollbar.warning("Form Validation Error: #{error} for #{self.to_s}") end end end end ActiveRecord::Base.send(:include, Rollbar::ActiveRecordExtension)
Version data entries
53 entries across 53 versions & 1 rubygems