Class: Renalware::Letters::PdfLetterCacheController

Inherits:
BaseController show all
Defined in:
app/controllers/renalware/letters/pdf_letter_cache_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Methods inherited from BaseController

#patient

Instance Method Details

#destroyObject



8
9
10
11
12
# File 'app/controllers/renalware/letters/pdf_letter_cache_controller.rb', line 8

def destroy
  authorize [:renalware, :admin, :cache], :destroy?
  Renalware::Letters::PdfLetterCache.clear
  redirect_to admin_cache_path, notice: "Cache successfully cleared"
end