Sha256: 806bc1c258692e3a9fbd83d6a386e9de640c8250350cf47680881588205879f4
Contents?: true
Size: 430 Bytes
Versions: 142
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/admin" module Renalware module Admin class CacheController < BaseController def show authorize [:renalware, :admin, :cache], :show? end def destroy authorize [:renalware, :admin, :cache], :destroy? Rails.cache.clear redirect_to admin_cache_path, notice: "Cache successfully cleared" end end end end
Version data entries
142 entries across 142 versions & 1 rubygems