module GroongaClientModel::Railties::ControllerRuntime

Public Instance Methods

append_info_to_payload(payload) click to toggle source
Calls superclass method
# File lib/groonga_client_model/railties/controller_runtime.rb, line 39
def append_info_to_payload(payload)
  super
  payload[:groonga_runtime] = GroongaClientModel::LogSubscriber.runtime
end
cleanup_view_runtime() click to toggle source
Calls superclass method
# File lib/groonga_client_model/railties/controller_runtime.rb, line 31
def cleanup_view_runtime
  total_runtime = nil
  groonga_runtime_in_view = GroongaClientModel::LogSubscriber.measure do
    total_runtime = super
  end
  total_runtime - groonga_runtime_in_view
end
process_action(action, *args) click to toggle source
Calls superclass method
# File lib/groonga_client_model/railties/controller_runtime.rb, line 26
def process_action(action, *args)
  GroongaClientModel::LogSubscriber.reset_runtime
  super
end