Module: GroongaClientModel::Railties::ControllerRuntime
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/groonga_client_model/railties/controller_runtime.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #append_info_to_payload(payload) ⇒ Object
- #cleanup_view_runtime ⇒ Object
- #process_action(action, *args) ⇒ Object
Instance Method Details
#append_info_to_payload(payload) ⇒ Object
39 40 41 42 |
# 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 ⇒ Object
31 32 33 34 35 36 37 |
# 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) ⇒ Object
26 27 28 29 |
# File 'lib/groonga_client_model/railties/controller_runtime.rb', line 26 def process_action(action, *args) GroongaClientModel::LogSubscriber.reset_runtime super end |