mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
223 B
Ruby
14 lines
223 B
Ruby
|
require 'active_support/benchmarkable'
|
||
|
|
||
|
module ActionView
|
||
|
module Helpers
|
||
|
module BenchmarkHelper
|
||
|
include ActiveSupport::Benchmarkable
|
||
|
|
||
|
def benchmark(*)
|
||
|
capture { super }
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|