aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorWashington Luiz <huoxito@gmail.com>2014-01-28 00:59:11 -0300
committerWashington Luiz <huoxito@gmail.com>2014-01-30 18:35:27 -0300
commitabc19c37aea561e7b087cee9d60c5698483f3136 (patch)
treeb0c1ac1dd708a88eb264ed1398ff7e6826d32aa4 /activerecord/lib
parentd4d041c1fe55c10a786a4a1a7ff0c34867944b2f (diff)
downloadrails-abc19c37aea561e7b087cee9d60c5698483f3136.tar.gz
rails-abc19c37aea561e7b087cee9d60c5698483f3136.tar.bz2
rails-abc19c37aea561e7b087cee9d60c5698483f3136.zip
Let `unscope` ignore non Arel scope.where_values
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 14470f22aa..860063426a 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -883,8 +883,6 @@ module ActiveRecord
when Arel::Nodes::In, Arel::Nodes::NotIn, Arel::Nodes::Equality, Arel::Nodes::NotEqual
subrelation = (rel.left.kind_of?(Arel::Attributes::Attribute) ? rel.left : rel.right)
subrelation.name == target_value
- else
- raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} \"#{rel}\" is unimplemented."
end
end