Class: ActiveRecord::PredicateBuilder::AssociationQueryValue
- Defined in:
- activerecord/lib/active_record/relation/predicate_builder/association_query_value.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(associated_table, value) ⇒ AssociationQueryValue
constructor
A new instance of AssociationQueryValue.
- #queries ⇒ Object
Constructor Details
#initialize(associated_table, value) ⇒ AssociationQueryValue
Returns a new instance of AssociationQueryValue.
6 7 8 9 |
# File 'activerecord/lib/active_record/relation/predicate_builder/association_query_value.rb', line 6 def initialize(associated_table, value) @associated_table = associated_table @value = value end |
Instance Method Details
#queries ⇒ Object
11 12 13 |
# File 'activerecord/lib/active_record/relation/predicate_builder/association_query_value.rb', line 11 def queries [associated_table.association_join_foreign_key.to_s => ids] end |