module ActionController::HttpAuthentication::Basic::ControllerMethods::ClassMethods
def http_basic_authenticate_with(options = {})
def http_basic_authenticate_with(options = {}) before_filter(options.except(:name, :password, :realm)) do authenticate_or_request_with_http_basic(options[:realm] || "Application") do |name, password| name == options[:name] && password == options[:password] end end end