diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-25 16:44:04 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-25 16:46:54 -0700 |
commit | 320600c773a16418fe37eccea2eb1082f58062f7 (patch) | |
tree | d86a82ab4a16a178c16d747257d9dac46a3c0908 /activerecord/lib/active_record/relation/where_clause.rb | |
parent | 87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4 (diff) | |
download | rails-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.rb | 2 |
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 |