aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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