method

cast

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Binary
cast(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/binary.rb, line 12
      def cast(value)
        if value.is_a?(Data)
          value.to_s
        else
          super
        end
      end
Register or log in to add new notes.