aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/arel/select_manager.rb6
1 files changed, 6 insertions, 0 deletions
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?