Sha256: 9c33ede515fed93560b2cf47a657ebd36ce75fa9af03fc3f4f385b27cd5fa67b
Contents?: true
Size: 556 Bytes
Versions: 15
Compression:
Stored size: 556 Bytes
Contents
module RailsPerformance module Extensions module View def info(&block) CurrentRequest.current.store({ group: :view, message: block.call }) super(&block) end end end end module RailsPerformance module Extensions module Db def sql(event) CurrentRequest.current.store({ group: :db, duration: event.duration.round(2), sql: event.payload[:sql] }) super(event) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems