Class: ActiveRecord::QueryLogs::ZeroArityHandler
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/query_logs.rb |
Class Method Summary
- .new(proc) ⇒ ZeroArityHandler constructor
Instance Method Summary
Constructor Details
.new(proc) ⇒ ZeroArityHandler
# File 'activerecord/lib/active_record/query_logs.rb', line 96
def initialize(proc) @proc = proc end
Instance Method Details
#call(_context)
[ GitHub ]# File 'activerecord/lib/active_record/query_logs.rb', line 100
def call(_context) @proc.call end