Created
October 18, 2013 15:05
-
-
Save braidn/7042940 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Quarterly | |
class SecretController < ApplicationController | |
before_filter :authenticate | |
def coco | |
render 'pages/coco-music' | |
end | |
private | |
def authenticate | |
authenticate_or_request_with_http_basic do |user, pass| | |
user == ENV['COCO_USERNAME'] && | |
pass == ENV['COCO_PASSWORD'] | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment