Files

Class Index [+]

Quicksearch

ActiveRecord::Railties::ControllerRuntime

Protected Instance Methods

append_info_to_payload(payload) click to toggle source
    # File lib/active_record/railties/controller_runtime.rb, line 24
24:       def append_info_to_payload(payload)
25:         super
26:         payload[:db_runtime] = db_runtime
27:       end
cleanup_view_runtime() click to toggle source
    # File lib/active_record/railties/controller_runtime.rb, line 12
12:       def cleanup_view_runtime
13:         if ActiveRecord::Base.connected?
14:           db_rt_before_render = ActiveRecord::LogSubscriber.reset_runtime
15:           runtime = super
16:           db_rt_after_render = ActiveRecord::LogSubscriber.reset_runtime
17:           self.db_runtime = db_rt_before_render + db_rt_after_render
18:           runtime - db_rt_after_render
19:         else
20:           super
21:         end
22:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.