method

check_arity_of_constructor

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: YAMLColumn
check_arity_of_constructor() private

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 43
        def check_arity_of_constructor
          load(nil)
        rescue ArgumentError
          raise ArgumentError, "Cannot serialize #{object_class}. Classes passed to `serialize` must have a 0 argument constructor."
        end
Register or log in to add new notes.