Flowdock
method

cast_value

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: String
cast_value(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/string.rb, line 16
        def cast_value(value)
          case value
          when ::String then ::String.new(value)
          when true then "t".freeze
          when false then "f".freeze
          else value.to_s
          end
        end
Register or log in to add new notes.