Sha256: 7c067f183e0f4658a247747eb1e96c00fc0ac245ddd6cd36fe37ad341a219e20

Contents?: true

Size: 251 Bytes

Versions: 31

Compression:

Stored size: 251 Bytes

Contents

require_dependency "smithy/base_controller"

module Smithy
  class CachesController < BaseController
    def show
    end

    def destroy
      Rails.cache.clear
      redirect_to cache_path, :notice => "The cache has been cleared"
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/controllers/smithy/caches_controller.rb
smithycms-0.7.3 app/controllers/smithy/caches_controller.rb
smithycms-0.7.2 app/controllers/smithy/caches_controller.rb
smithycms-0.7.1 app/controllers/smithy/caches_controller.rb
smithycms-0.7.0 app/controllers/smithy/caches_controller.rb
smithycms-0.6.10 app/controllers/smithy/caches_controller.rb
smithycms-0.5.99.3 app/controllers/smithy/caches_controller.rb
smithycms-0.6.9 app/controllers/smithy/caches_controller.rb
smithycms-0.6.7 app/controllers/smithy/caches_controller.rb
smithycms-0.6.6 app/controllers/smithy/caches_controller.rb
smithycms-0.6.5 app/controllers/smithy/caches_controller.rb
smithycms-0.6.4 app/controllers/smithy/caches_controller.rb
smithycms-0.6.3 app/controllers/smithy/caches_controller.rb
smithycms-0.5.99.2 app/controllers/smithy/caches_controller.rb
smithycms-0.5.99.1 app/controllers/smithy/caches_controller.rb
smithycms-0.5.99 app/controllers/smithy/caches_controller.rb
smithycms-0.6.2 app/controllers/smithy/caches_controller.rb
smithycms-0.6.1 app/controllers/smithy/caches_controller.rb
smithycms-0.5.2 app/controllers/smithy/caches_controller.rb
smithycms-0.6.0 app/controllers/smithy/caches_controller.rb