From 821d67cdf71dfe9f28d6cc2756c5a0379c5b1b08 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Mon, 21 Sep 2015 10:36:45 -0600 Subject: Require dependencies from stdlib in the Decimal type In Active Record, it appears these were either autoloaded, which actually was likely due to test ordering since the method `Float#to_d` wouldn't trigger it. This makes it explicit, and unlikely to fail in the future. --- activemodel/lib/active_model/type/decimal.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemodel/lib/active_model/type/decimal.rb b/activemodel/lib/active_model/type/decimal.rb index 83a16018ea..d19d8baada 100644 --- a/activemodel/lib/active_model/type/decimal.rb +++ b/activemodel/lib/active_model/type/decimal.rb @@ -1,3 +1,5 @@ +require "bigdecimal/util" + module ActiveModel module Type class Decimal < Value # :nodoc: -- cgit v1.2.3