Permalink
Browse files

deprecating SelectManager#wheres method

  • Loading branch information...
1 parent d7ed233 commit fc353baa803ba5ab2c11d71adcec358ea5c75f44 @tenderlove tenderlove committed Apr 11, 2011
Showing with 4 additions and 0 deletions.
  1. +3 −0 History.txt
  2. +1 −0 lib/arel/select_manager.rb
View
3 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
View
1 lib/arel/select_manager.rb
@@ -143,6 +143,7 @@ def orders
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

0 comments on commit fc353ba

Please sign in to comment.