aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-11 15:49:27 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-11 15:49:27 -0700
commitfc353baa803ba5ab2c11d71adcec358ea5c75f44 (patch)
tree72cc877987fb5421aeceb7d8f9f7fd2003da8224
parentd7ed2338b13821aba6cabf204bbd7f6b3e851644 (diff)
downloadrails-fc353baa803ba5ab2c11d71adcec358ea5c75f44.tar.gz
rails-fc353baa803ba5ab2c11d71adcec358ea5c75f44.tar.bz2
rails-fc353baa803ba5ab2c11d71adcec358ea5c75f44.zip
deprecating SelectManager#wheres method
-rw-r--r--History.txt3
-rw-r--r--lib/arel/select_manager.rb1
2 files changed, 4 insertions, 0 deletions
diff --git a/History.txt b/History.txt
index 7b72342ea5..6eec0b1d0d 100644
--- a/History.txt
+++ b/History.txt
@@ -49,6 +49,9 @@
* Arel::SelectManager#where_clauses is deprecated and will be removed in
3.0.0 with no replacement.
+ * Arel::SelectManager#wheres is deprecated and will be removed in
+ 3.0.0 with no replacement.
+
== 2.0.7 (unreleased)
* Bug Fixes
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 904a24bbb3..048cc5133d 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -143,6 +143,7 @@ module Arel
end
def wheres
+ warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in ARel 3.0.0 with no replacement"
Compatibility::Wheres.new @engine, @ctx.wheres
end