1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #25279 from maclover7/jm-add-backticks-1

Add backticks to `ActiveRecord::Base.where`
This commit is contained in:
David Heinemeier Hansson 2016-06-06 18:59:25 +02:00
commit 3da81f89ab

View file

@ -50,7 +50,7 @@ ToDo...
Defines an attribute with a type on a model. It will override the type of existing attributes if needed. Defines an attribute with a type on a model. It will override the type of existing attributes if needed.
This allows control over how values are converted to and from SQL when assigned to a model. This allows control over how values are converted to and from SQL when assigned to a model.
It also changes the behavior of values passed to ActiveRecord::Base.where, which lets use our domain objects across much of Active Record, It also changes the behavior of values passed to `ActiveRecord::Base.where`, which lets use our domain objects across much of Active Record,
without having to rely on implementation details or monkey patching. without having to rely on implementation details or monkey patching.
Some things that you can achieve with this: Some things that you can achieve with this: