mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Removed deprecated Arel::Sql::Engine
and make use of FakeRecord::Base
inplace directly for test helper.
This commit is contained in:
parent
048d6c0aef
commit
a09c9f0617
3 changed files with 1 additions and 12 deletions
|
@ -27,7 +27,6 @@ require 'arel/nodes'
|
|||
|
||||
#### these are deprecated
|
||||
require 'arel/deprecated'
|
||||
require 'arel/sql/engine'
|
||||
require 'arel/sql_literal'
|
||||
####
|
||||
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
module Arel
|
||||
module Sql
|
||||
class Engine
|
||||
def self.new thing
|
||||
#warn "#{caller.first} -- Engine will be removed"
|
||||
thing
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -4,7 +4,7 @@ require 'fileutils'
|
|||
require 'arel'
|
||||
|
||||
require 'support/fake_record'
|
||||
Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base.new)
|
||||
Arel::Table.engine = FakeRecord::Base.new
|
||||
|
||||
class Object
|
||||
def must_be_like other
|
||||
|
|
Loading…
Reference in a new issue