module Rollbar::ActiveRecordExtension
Module that defines methods to be used by instances using ActiveModel::Validations The name is ActiveRecordExtension
in order to not break backwards compatibility, although probably it should be named Rollbar::ValidationsExtension or similar
Public Instance Methods
report_validation_errors_to_rollbar()
click to toggle source
# File lib/rollbar/plugins/validations.rb, line 18 def report_validation_errors_to_rollbar errors.full_messages.each do |error| Rollbar.log_info( "[Rollbar] Reporting form validation error: #{error} for #{self}" ) Rollbar.warning("Form Validation Error: #{error} for #{self}") end end