mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
Code quality
This commit is contained in:
parent
4115e6383b
commit
ccb9ec052e
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ module GrapeLogging
|
||||||
@subscription = ActiveSupport::Notifications.subscribe('sql.active_record') do |*args|
|
@subscription = ActiveSupport::Notifications.subscribe('sql.active_record') do |*args|
|
||||||
event = ActiveSupport::Notifications::Event.new(*args)
|
event = ActiveSupport::Notifications::Event.new(*args)
|
||||||
@duration += event.duration
|
@duration += event.duration
|
||||||
end
|
end if defined?(ActiveRecord)
|
||||||
end
|
end
|
||||||
|
|
||||||
def after
|
def after
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue