destroy(*records) public

Deletes the records and removes them from this association calling before_remove, after_remove, before_destroy and after_destroy callbacks.

Note that this method removes records from the database ignoring the :dependent option.

Show source
Register or log in to add new notes.