method
check_arity_of_constructor
rails latest stable - Class:
ActiveRecord::Coders::YAMLColumn
check_arity_of_constructor()private
No documentation available.
# File activerecord/lib/active_record/coders/yaml_column.rb, line 88
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