method

equal_nan?

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: Numeric
equal_nan?(old_value, new_value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/type/helpers/numeric.rb, line 37
          def equal_nan?(old_value, new_value)
            (old_value.is_a?(::Float) || old_value.is_a?(BigDecimal)) &&
              old_value.nan? &&
              old_value.instance_of?(new_value.class) &&
              new_value.nan?
          end
Register or log in to add new notes.