app/controllers/sabisu_rails/base_controller.rb
module SabisuRails
class BaseController < ApplicationController
layout SabisuRails.layout
before_filter :authenticate
protected
def authenticate
authenticate_or_request_with_http_basic do |username, password|
username == SabisuRails.authentication_username && password == SabisuRails.authentication_password
end
end
end
end