lib/active_scaffold/finder.rb in active_scaffold-3.6.19 vs lib/active_scaffold/finder.rb in active_scaffold-3.6.20

- old
+ new

@@ -295,10 +295,10 @@ else value.to_i end when :float then value.to_f when :decimal - ::ActiveRecord::Type::Decimal.new.type_cast_from_user(value) + ::ActiveRecord::Type::Decimal.new.send(Rails.version < '5.0' ? :type_cast_from_user : :cast, value) else value end end