Module: ActiveRecord::Railties::ControllerRuntime
- Defined in:
- lib/time_bandits/monkey_patches/active_record.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#append_info_to_payload(payload) ⇒ Object
142 143 144 145 146 147 |
# File 'lib/time_bandits/monkey_patches/active_record.rb', line 142 def append_info_to_payload(payload) super if ActiveRecord::Base.connected? payload[:db_runtime] = TimeBandits::TimeConsumers::Database.instance.consumed end end |
#cleanup_view_runtime ⇒ Object
136 137 138 139 |
# File 'lib/time_bandits/monkey_patches/active_record.rb', line 136 def cleanup_view_runtime # this method has been redefined to do nothing for activerecord on purpose super end |