This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
8fee923888
rails--rails
/
activerecord
/
test
/
models
/
liquid.rb
5 lines
105 B
Ruby
Raw
Normal View
History
Unescape
Escape
Eager loading an association should not change the count of children [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-26 15:12:36 -04:00
class
Liquid
<
ActiveRecord
::
Base
Deprecate set_table_name in favour of self.table_name= or defining your own method.
2011-11-29 07:28:04 -05:00
self
.
table_name
=
:liquid
rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works. The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our Relation API is close to SQL terms I renamed `#uniq` to `#distinct`. There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue to work. I also updated the documentation to promote the use of `#distinct`.
2013-03-12 05:23:08 -04:00
has_many
:molecules
,
-
>
{
distinct
}
Eager loading an association should not change the count of children [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-26 15:12:36 -04:00
end
Copy permalink