From fc353baa803ba5ab2c11d71adcec358ea5c75f44 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 11 Apr 2011 15:49:27 -0700 Subject: [PATCH] deprecating SelectManager#wheres method --- History.txt | 3 +++ lib/arel/select_manager.rb | 1 + 2 files changed, 4 insertions(+) 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