Topic: How to use a parent class method with same name
Hi, I have a controller class which extends a cms controller.
I'd like to add some extra functionality to the "destroy" method in the child controller class (delete associated files as well).
I'm aiming for something like this:
# remove associated files
# perform destroy method from parent controller
But I get this error:
undefined method `destroy' for Admin::CmsController:Class
(it's definitely defined, confirmed by "raise Admin::CmsController.public_instance_methods(false).inspect")
I'm tempted to just paste the code from the parent controller there (it's only a few lines) but I'd really like to know the DRY way of achieving this. Anyone know? Thanks