Prevent error when calling <association>_ids=

Error raised when creating a delete statement as a result of calling
association's *_ids= method.

Error: undefined method `abstract_class?' for Object:Class