Class: ActiveRecord::QueryLogs::GetKeyHandler
- Defined in:
- activerecord/lib/active_record/query_logs.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call(context) ⇒ Object
-
#initialize(name) ⇒ GetKeyHandler
constructor
A new instance of GetKeyHandler.
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 |