Class: AppProfiler::Middleware::BaseAction

Inherits:
Object
  • Object
show all
Defined in:
lib/app_profiler/middleware/base_action.rb

Direct Known Subclasses

UploadAction, ViewAction

Class Method Summary collapse

Class Method Details

.call(_profile, _params = {}) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/app_profiler/middleware/base_action.rb', line 7

def call(_profile, _params = {})
  raise NotImplementedError
end

.cleanupObject



11
12
13
14
# File 'lib/app_profiler/middleware/base_action.rb', line 11

def cleanup
  profile = AppProfiler.profiler.results
  call(profile) if profile
end