method
cast_value
v6.0.0 -
Show latest stable
- Class:
ActiveModel::Type::String
cast_value(value)private
No documentation available.
# File activemodel/lib/active_model/type/string.rb, line 16
def cast_value(value)
case value
when ::String then ::String.new(value)
when true then "t"
when false then "f"
else value.to_s
end
end