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.147 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.146 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.145 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.144 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.143 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.142 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.141 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.140 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.139 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.138 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.137 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.136 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.135 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.134 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.133 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.132 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.131 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.130 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.129 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.128 app/controllers/renalware/admin/cache_controller.rb