method

cast_value

rails latest stable - Class: ActiveModel::Type::String
cast_value(value)
private

No documentation available.

# File activemodel/lib/active_model/type/string.rb, line 33
        def cast_value(value)
          case value
          when ::String then ::String.new(value)
          when true then @true
          when false then @false
          else value.to_s
          end
        end