method
check_arity_of_constructor
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Coders::ColumnSerializer
check_arity_of_constructor()private
No documentation available.
# File activerecord/lib/active_record/coders/column_serializer.rb, line 54
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