Kir Shatrov
831be98f9a
Use frozen-string-literal in ActiveRecord
2017-07-19 22:27:07 +03:00
Matthew Draper
87b3e226d6
Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
...
This reverts commit 3420a14590
, reversing
changes made to afb66a5a59
.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e
Enforce frozen string in Rubocop
2017-07-01 02:11:03 +03:00
Yves Senn
a1bb6c8b06
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-15 14:15:47 +01:00
Jon Leighton
e1cfa6e070
Convert association macros to the new syntax
2012-07-20 14:14:51 +01:00
Jon Leighton
0b72a04d0c
Deprecate set_table_name in favour of self.table_name= or defining your own method.
2011-11-29 20:13:36 +00:00
Neeraj Singh
009aa8825b
Eager loading an association should not change the count of children
...
[#4971 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-02 17:12:59 +02:00