Permalink
Browse files

:uniq is still a valid relation option since it was only silently

deprecated

Fixes activerecord-deprecated_finders build.

https://travis-ci.org/rails/activerecord-deprecated_finders/builds/5964703
  • Loading branch information...
1 parent e456ad5 commit c311447a0f1da00dfc1353645c486cc93cd575c8 @rafaelfranca rafaelfranca committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation.rb
@@ -10,7 +10,7 @@ class Relation
:extending]
SINGLE_VALUE_METHODS = [:limit, :offset, :lock, :readonly, :from, :reordering,
- :reverse_order, :distinct, :create_with]
+ :reverse_order, :distinct, :create_with, :uniq]
VALUE_METHODS = MULTI_VALUE_METHODS + SINGLE_VALUE_METHODS

0 comments on commit c311447

Please sign in to comment.