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

Version Path
renalware-core-2.0.104 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.103 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.102 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.101 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.100 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.99 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.98 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.97 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.96 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.95 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.94 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.93 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.92 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.91 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.90 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.89 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.88 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.87 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.86 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.85 app/controllers/renalware/admin/cache_controller.rb