Module: ActiveLdap::ActionController::LdapBenchmarking

Defined in:
lib/active_ldap/action_controller/ldap_benchmarking.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/active_ldap/action_controller/ldap_benchmarking.rb', line 4

def self.included(base)
  base.class_eval do
    alias_method_chain :render_with_benchmark, :active_ldap
    if private_method_defined?(:view_runtime)
      alias_method_chain :view_runtime, :active_ldap
    else
      alias_method_chain :rendering_runtime, :active_ldap
    end
  end
end