Sha256: faa26516a08c569f233cdfdce1c5d0896a58fbb8ddc90bf5b7a9565af2f163af

Contents?: true

Size: 393 Bytes

Versions: 13

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module RedisWebManager
  class ActionsController < ApplicationController
    # DELETE /reset
    def reset
      data.flush
      redirect_to root_url
    end

    # DELETE /flushdb
    def flushdb
      action.flushdb
      redirect_to root_url
    end

    # DELETE /flushall
    def flushall
      action.flushall
      redirect_to root_url
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.9 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.8 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.6 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.5 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.4 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.3 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.2 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.1 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.3.0 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.2.1 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.2.0 app/controllers/redis_web_manager/actions_controller.rb
redis_web_manager-0.1.8 app/controllers/redis_web_manager/actions_controller.rb