1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

deprecating SelectManager#wheres method

This commit is contained in:
Aaron Patterson 2011-04-11 15:49:27 -07:00
parent d7ed2338b1
commit fc353baa80
2 changed files with 4 additions and 0 deletions

View file

@ -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 file

@ -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