Methods
C
N
Class Public methods
new(app)
# File config/initializers/4_resque.rb, line 14
def initialize(app)
  @app = app
end
Instance Public methods
call(env)
# File config/initializers/4_resque.rb, line 18
def call(env)
  account = env['warden'].authenticate!(:database_authenticatable, :rememberable, scope: :user)
  raise "Access denied" if !account.admin?
  @app.call(env)
end