Class: ActiveRecord::QueryLogs::GetKeyHandler
- Inherits:
-
Object
- Object
- ActiveRecord::QueryLogs::GetKeyHandler
- Defined in:
- 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 'lib/active_record/query_logs.rb', line 76 def initialize(name) @name = name end |
Instance Method Details
#call(context) ⇒ Object
80 81 82 |
# File 'lib/active_record/query_logs.rb', line 80 def call(context) context[@name] end |