From 6a1b7985602c5bfab4c8875ca9bf0d598e063a65 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 26 Jan 2019 12:38:34 +0900 Subject: Add missing require for `Float#to_d` In master, tests pass because `bigdecimal/util` requires in `active_support/xml_mini`. But test fails in 5-2-stable because that require does not exist. Ref: https://travis-ci.org/rails/rails/jobs/484627996#L1969 --- activemodel/lib/active_model/validations/numericality.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activemodel/lib/active_model') diff --git a/activemodel/lib/active_model/validations/numericality.rb b/activemodel/lib/active_model/validations/numericality.rb index 9cb8b543b0..51e224d5cd 100644 --- a/activemodel/lib/active_model/validations/numericality.rb +++ b/activemodel/lib/active_model/validations/numericality.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "bigdecimal/util" + module ActiveModel module Validations class NumericalityValidator < EachValidator # :nodoc: -- cgit v1.2.3