diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-09 15:50:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-09 15:50:14 -0700 |
commit | ef85edac7b2d7119680fe691bd9eab206e8a0d41 (patch) | |
tree | bb7742df52bc56294d73439bd4ca4a1862c39dfc /lib/arel | |
parent | 67d2f9a922314e4ac51d99981efe886a3a7aca86 (diff) | |
download | rails-ef85edac7b2d7119680fe691bd9eab206e8a0d41.tar.gz rails-ef85edac7b2d7119680fe691bd9eab206e8a0d41.tar.bz2 rails-ef85edac7b2d7119680fe691bd9eab206e8a0d41.zip |
adding a deprecated method for rails
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 6 |
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? |