aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-25 16:40:23 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-25 16:40:23 -0700
commit87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4 (patch)
tree388e0a8442b85432310a3e116f7c61ddc05fc5bc /activerecord/lib/active_record/relation
parentdef2879d7d187df945d77c1028d4cef588cbc8a0 (diff)
downloadrails-87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4.tar.gz
rails-87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4.tar.bz2
rails-87726b93d4fd447671d0b20ae2ec37a9eb4f2fd4.zip
Remove references to `:bind` in `except`
Bind values are no longer a thing, so this is unnecessary.
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r--activerecord/lib/active_record/relation/spawn_methods.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/spawn_methods.rb b/activerecord/lib/active_record/relation/spawn_methods.rb
index 01bddea6c9..dd3610d7aa 100644
--- a/activerecord/lib/active_record/relation/spawn_methods.rb
+++ b/activerecord/lib/active_record/relation/spawn_methods.rb
@@ -58,9 +58,6 @@ module ActiveRecord
# Post.order('id asc').only(:where) # discards the order condition
# Post.order('id asc').only(:where, :order) # uses the specified order
def only(*onlies)
- if onlies.any? { |o| o == :where }
- onlies << :bind
- end
relation_with values.slice(*onlies)
end