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

Version Path
saucy-0.12.2 app/controllers/admin/base_controller.rb
saucy-0.12.1 app/controllers/admin/base_controller.rb
saucy-0.12.0 app/controllers/admin/base_controller.rb
saucy-0.11.5 app/controllers/admin/base_controller.rb
saucy-0.11.3 app/controllers/admin/base_controller.rb
saucy-0.11.2 app/controllers/admin/base_controller.rb
saucy-0.10.7 app/controllers/admin/base_controller.rb
saucy-0.10.6 app/controllers/admin/base_controller.rb
saucy-0.10.5 app/controllers/admin/base_controller.rb