Class: ActiveRecord::QueryLogs::GetKeyHandler

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ GetKeyHandler

Returns a new instance of GetKeyHandler.



76
77
78
# File 'activerecord/lib/active_record/query_logs.rb', line 76

def initialize(name)
  @name = name
end

Instance Method Details

#call(context) ⇒ Object



80
81
82
# File 'activerecord/lib/active_record/query_logs.rb', line 80

def call(context)
  context[@name]
end