Flowdock
method

type_cast_for_schema

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: Float
type_cast_for_schema(value) public

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/float.rb, line 10
      def type_cast_for_schema(value)
        return "::Float::NAN" if value.try(:nan?)
        case value
        when ::Float::INFINITY then "::Float::INFINITY"
        when -::Float::INFINITY then "-::Float::INFINITY"
        else super
        end
      end
Register or log in to add new notes.