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.1.1 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.1.0 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.167 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.166 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.165 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.164 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.163 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.162 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.161 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.160 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.159 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.158 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.157 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.156 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.155 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.153 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.152 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.151 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.149 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.148 app/controllers/renalware/admin/cache_controller.rb