Sha256: 29c3f9b27fe0d934a75ea308b1e23fee1d11242deb1a607cffe7c7450f384032
Contents?: true
Size: 475 Bytes
Versions: 22
Compression:
Stored size: 475 Bytes
Contents
module EitilSupport::Stack::Audit extend ActiveSupport::Concern included do private after_update :add_stacktrace_to_audit def add_stacktrace_to_audit # .report_app_calls filters the stack on calls whose path include "/app/", since # audits otherwise tend to grow very big, which might endanger the database. stacktrace = EitilSupport::Stack.new.report_app_calls self.audits.last.update(stacktrace: stacktrace) end end end
Version data entries
22 entries across 22 versions & 1 rubygems