diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-27 02:02:22 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2014-01-27 02:02:22 -0800 |
commit | 3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f (patch) | |
tree | f3fc7da5703fc69c90c157c5cb5f3ce316c10d7f /activerecord/lib/active_record | |
parent | 5540dfccd88c809c2922f21f4c1558465bce26dd (diff) | |
parent | 8b14b114348c1bf8a88689028e25240d457dff56 (diff) | |
download | rails-3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f.tar.gz rails-3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f.tar.bz2 rails-3fd6329e2bda3b5e01cab90527fe5d09e21f3b9f.zip |
Merge pull request #13848 from huoxito/tell-value
Display value when raising due to unscope() issues
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index d392f759bd..993f628fa3 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -877,7 +877,7 @@ module ActiveRecord 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} is unimplemented." + raise "unscope(where: #{target_value.inspect}) failed: unscoping #{rel.class} \"#{rel}\" is unimplemented." end end |