Sha256: e80f246f51139933af621f8166ed1be710c5b8d7b73958d489234eb48aae401f
Contents?: true
Size: 355 Bytes
Versions: 4
Compression:
Stored size: 355 Bytes
Contents
class Admin::BaseController < ApplicationController layout 'admin' before_filter :authenticate_admin def show end protected def authenticate_admin authenticate_or_request_with_http_basic do |user_name, password| user_name == Saucy::Configuration.admin_username && password == Saucy::Configuration.admin_password end end end
Version data entries
4 entries across 4 versions & 1 rubygems