Sha256: 6874adb9b9688f68c4527eb22a82051527bee1745949a782fba6baaab6461631
Contents?: true
Size: 371 Bytes
Versions: 29
Compression:
Stored size: 371 Bytes
Contents
class Admin::BaseController < ApplicationController layout 'admin' before_filter :authenticate_admin helper :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
29 entries across 29 versions & 1 rubygems