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
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
..
active_record Allow symbols using "dot notation" to be passed to where 2016-04-12 10:42:28 -06:00
rails/generators correctly check ApplicationRecord is exist in moutable engine 2016-02-25 07:48:11 +09:00
active_record.rb Publish AS::Executor and AS::Reloader APIs 2016-03-02 02:14:20 +10:30