From ef85edac7b2d7119680fe691bd9eab206e8a0d41 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 9 Sep 2010 15:50:14 -0700 Subject: adding a deprecated method for rails --- lib/arel/select_manager.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 2be6d52fef..678e289814 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -8,6 +8,12 @@ module Arel @ctx = @head.cores.last end + def where_clauses + warn "STOP CALLING ME" if $VERBOSE + to_sql = Visitors::ToSql.new @engine + @ctx.wheres.map { |c| to_sql.accept c } + end + def lock locking = true # FIXME: do we even need to store this? If locking is +false+ shouldn't # we just remove the node from the AST? -- cgit v1.2.3