Sha256: ff2c85582e466f751b073762ec83309a9b914c6259298d701bc1845f0abf7076
Contents?: true
Size: 327 Bytes
Versions: 40
Compression:
Stored size: 327 Bytes
Contents
class AuthenticatedController < ApplicationController before_filter :authenticate def page render :text => 'Action reached' end private def authenticate authenticate_or_request_with_http_basic('Administration') do |username, password| username == 'user' && password == 'password' end end end
Version data entries
40 entries across 40 versions & 1 rubygems