1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/associations
Sean Griffin 714ab8cb59 Allow symbols using "dot notation" to be passed to where
In 04ac5655be I assumed that we would
never want to pass the "table_name.column_name" form to where with a
symbol. However, in Ruby 2.2 and later, you can quote symbols using the
new hash syntax, so it's a semi-reasonable thing to do if we want to
support the dot notation (which I'd rather deprecate, but that would be
too painful of a migration).

Instead we've changed the definition of "this is a table name with a
dot" to when the value associated is a hash. It would make very little
sense to write `where("table_name.column_name": { foo: :bar })` in any
scenario (other than equality for a JSON column which we don't support
through `where` in this way).

Close #24514.
2016-04-12 10:42:28 -06:00
..
builder don't treat all associations with extensions as instance dependent. 2016-03-03 16:52:35 +01:00
join_dependency Merge pull request #18109 from k0kubun/unscoped-joins 2016-02-11 11:33:30 -07:00
preloader Merge pull request #18766 from yasyf/issue_17864 2016-02-29 11:20:43 -07:00
alias_tracker.rb
association.rb start hiding the scope_chain data structure 2016-03-04 13:47:41 -08:00
association_scope.rb Allow symbols using "dot notation" to be passed to where 2016-04-12 10:42:28 -06:00
belongs_to_association.rb
belongs_to_polymorphic_association.rb
collection_association.rb rename to 'second_to_last' and 'third_to_last' 2016-02-10 10:10:38 -08:00
collection_proxy.rb Mutating the result of Relation#to_a should not affect the relation 2016-02-21 03:28:18 +10:30
foreign_association.rb
has_many_association.rb
has_many_through_association.rb Add missing source_type if provided on hmt which belongs to an sti record 2016-01-24 22:25:12 +05:30
has_one_association.rb
has_one_through_association.rb
join_dependency.rb Improve clarity of error message for missing includes and eager_load 2016-01-28 00:41:26 -05:00
preloader.rb Fix undefined method `owners' for NullPreloader:Class 2016-04-06 00:46:55 -03:00
singular_association.rb Mutating the result of Relation#to_a should not affect the relation 2016-02-21 03:28:18 +10:30
through_association.rb