method

check_arity_of_constructor

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