Sha256: 4b6b98cb7c53c5b40a1bfb103a55e21da6302263f610e16d2fa4deb9ec2cab55
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true module RedisWebManager class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :authenticated?, if: :authenticate private def authenticated? instance_exec(&authenticate) end def authenticate RedisWebManager.authenticate end def info @info ||= RedisWebManager::Info.new end def connection @connection ||= RedisWebManager::Connection.new end def action @action ||= RedisWebManager::Action.new end def data @data ||= RedisWebManager::Data.new end end end
Version data entries
3 entries across 3 versions & 1 rubygems