• R
    Respect new records for `CollectionProxy#uniq` · 0ec967aa
    Ryuta Kamizono 提交于
    Currently if `CollectionProxy` has more than one new record,
    `CollectionProxy#uniq` result is incorrect.
    
    And `CollectionProxy#uniq` was aliased to `distinct` in a1bb6c8b.
    But the `uniq` method and the `SELECT DISTINCT` method are different
    methods. The doc in `CollectionProxy` is for the `SELECT DISTINCT`
    method, not for the `uniq` method.
    
    Therefore, reverting the alias in `CollectionProxy` to fix the
    inconsistency and to have the both methods.
    0ec967aa
has_many_associations_test.rb 82.6 KB