diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-07-14 21:17:57 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-11-10 11:29:17 +0530 |
commit | 9cbfc8a370bf6537a02a2f21e7246dc21ba4cf1f (patch) | |
tree | fd353b7936bd77ca2c8b624c31cab6b650b74bca | |
parent | a8f6662defe086258814f82dc8acb8d2eeee9842 (diff) | |
download | rails-9cbfc8a370bf6537a02a2f21e7246dc21ba4cf1f.tar.gz rails-9cbfc8a370bf6537a02a2f21e7246dc21ba4cf1f.tar.bz2 rails-9cbfc8a370bf6537a02a2f21e7246dc21ba4cf1f.zip |
Remove deprecated calls to `SelectManager#wheres` with no replacement
-rw-r--r-- | lib/arel/select_manager.rb | 5 | ||||
-rw-r--r-- | test/test_activerecord_compat.rb | 18 |
2 files changed, 0 insertions, 23 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index b4899177d5..60df12c700 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -161,11 +161,6 @@ module Arel @ast.orders end - def wheres - warn "#{caller[0]}: SelectManager#wheres is deprecated and will be removed in Arel 4.0.0 with no replacement" - Compatibility::Wheres.new @engine.connection, @ctx.wheres - end - def where_sql return if @ctx.wheres.empty? diff --git a/test/test_activerecord_compat.rb b/test/test_activerecord_compat.rb deleted file mode 100644 index d881209610..0000000000 --- a/test/test_activerecord_compat.rb +++ /dev/null @@ -1,18 +0,0 @@ -require 'helper' - -module Arel - describe 'activerecord compatibility' do - describe 'select manager' do - it 'provides wheres' do - table = Table.new :users - manager = Arel::SelectManager.new Table.engine - manager.where table[:id].eq 1 - manager.where table[:name].eq 'Aaron' - - manager.wheres.map { |x| - x.value - }.join(', ').must_equal "\"users\".\"id\" = 1, \"users\".\"name\" = 'Aaron'" - end - end - end -end |