Class: ActiveRecord::QueryLogs::ZeroArityHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/query_logs.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(proc) ⇒ ZeroArityHandler

Returns a new instance of ZeroArityHandler.



96
97
98
# File 'lib/active_record/query_logs.rb', line 96

def initialize(proc)
  @proc = proc
end

Instance Method Details

#call(_context) ⇒ Object



100
101
102
# File 'lib/active_record/query_logs.rb', line 100

def call(_context)
  @proc.call
end