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.127 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.126 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.125 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.124 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.123 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.121 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.120 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.119 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.118 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.117 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.116 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.115 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.113 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.112 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.111 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.110 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.109 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.108 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.106 app/controllers/renalware/admin/cache_controller.rb
renalware-core-2.0.105 app/controllers/renalware/admin/cache_controller.rb