method

load

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ColumnSerializer
load(payload) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/coders/column_serializer.rb, line 29
      def load(payload)
        if payload.nil?
          if @object_class != ::Object
            return @object_class.new
          end
          return nil
        end

        object = coder.load(payload)

        assert_valid_value(object, action: "load")
        object ||= object_class.new if object_class != Object

        object
      end
Register or log in to add new notes.