aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/where_clause.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-25 16:44:04 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-25 16:46:54 -0700
commit320600c773a16418fe37eccea2eb1082f58062f7 (patch)
treed86a82ab4a16a178c16d747257d9dac46a3c0908 /activerecord/lib/active_record/relation/where_clause.rb
parent87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4 (diff)
downloadrails-320600c773a16418fe37eccea2eb1082f58062f7.tar.gz
rails-320600c773a16418fe37eccea2eb1082f58062f7.tar.bz2
rails-320600c773a16418fe37eccea2eb1082f58062f7.zip
Remove all references to `where_values` in association code
Diffstat (limited to 'activerecord/lib/active_record/relation/where_clause.rb')
-rw-r--r--activerecord/lib/active_record/relation/where_clause.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/relation/where_clause.rb b/activerecord/lib/active_record/relation/where_clause.rb
index cd6da052a9..d1469d0a7a 100644
--- a/activerecord/lib/active_record/relation/where_clause.rb
+++ b/activerecord/lib/active_record/relation/where_clause.rb
@@ -3,6 +3,8 @@ module ActiveRecord
class WhereClause # :nodoc:
attr_reader :parts, :binds
+ delegate :empty?, to: :parts
+
def initialize(parts, binds)
@parts = parts
@binds = binds