Flowdock
method

cast_value

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