Class: ActiveRecord::QueryLogs::ZeroArityHandler
- Defined in:
- activerecord/lib/active_record/query_logs.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call(_context) ⇒ Object
-
#initialize(proc) ⇒ ZeroArityHandler
constructor
A new instance of ZeroArityHandler.
Constructor Details
#initialize(proc) ⇒ ZeroArityHandler
Returns a new instance of ZeroArityHandler.
96 97 98 |
# File 'activerecord/lib/active_record/query_logs.rb', line 96 def initialize(proc) @proc = proc end |
Instance Method Details
#call(_context) ⇒ Object
100 101 102 |
# File 'activerecord/lib/active_record/query_logs.rb', line 100 def call(_context) @proc.call end |