aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/benchmark_helper.rb
blob: dfdd5a786d74d6bc3ef9301a1e7b04b8d94ba3f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'active_support/benchmarkable'

module ActionView
  module Helpers
    module BenchmarkHelper
      include ActiveSupport::Benchmarkable

      def benchmark(*)
        capture { super }
      end
    end
  end
end