From 008445d6fd5f825d9b445ac75a7be67f0f7ab52c Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 26 Dec 2014 18:02:56 -0700 Subject: Deprecate automatic type casting within Arel Rails now performs all casting eagerly, before passing the value into Arel. Once we remove this, the code on both sides will be simplified greatly. Ideally, we can provide the appropriate public APIs on the Rails side to ease this transition for library authors who depend on this behavior. --- test/helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/helper.rb') diff --git a/test/helper.rb b/test/helper.rb index 6e8ac836fc..87f5756d24 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -6,6 +6,8 @@ require 'arel' require 'support/fake_record' Arel::Table.engine = FakeRecord::Base.new +$arel_silence_type_casting_deprecation = true + class Object def must_be_like other gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip -- cgit v1.2.3