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
151 152 153 154 155 156 |
# File 'lib/time_bandits/monkey_patches/active_record.rb', line 151 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
146 147 148 149 |
# File 'lib/time_bandits/monkey_patches/active_record.rb', line 146 def cleanup_view_runtime # this method has been redefined to do nothing for activerecord on purpose super end |