module MongoModel::Railties::ControllerRuntime
Protected Instance Methods
append_info_to_payload(payload)
click to toggle source
Calls superclass method
# File lib/mongomodel/railties/controller_runtime.rb, line 19 def append_info_to_payload(payload) super payload[:db_runtime] = db_runtime end
cleanup_view_runtime()
click to toggle source
Calls superclass method
# File lib/mongomodel/railties/controller_runtime.rb, line 11 def cleanup_view_runtime db_rt_before_render = MongoModel::LogSubscriber.reset_runtime runtime = super db_rt_after_render = MongoModel::LogSubscriber.reset_runtime self.db_runtime = db_rt_before_render + db_rt_after_render runtime - db_rt_after_render end