method

assert_valid_value

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: YAMLColumn
assert_valid_value(obj, action:) 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/yaml_column.rb, line 34
      def assert_valid_value(obj, action))
        unless obj.nil? || obj.is_a?(object_class)
          raise SerializationTypeMismatch,
            "can't #{action} `#{@attr_name}`: was supposed to be a #{object_class}, but was a #{obj.class}. -- #{obj.inspect}"
        end
      end
Register or log in to add new notes.