From 58301c2dc4302cd099b74e5da223bc5b8ba3d175 Mon Sep 17 00:00:00 2001 From: Daniel Lopes Date: Sun, 31 Jan 2010 14:59:49 -0200 Subject: [PATCH] remove beta filter --- app/controllers/application_controller.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a12275a..81a0196 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -9,8 +9,6 @@ class ApplicationController < ActionController::Base rescue_from ActiveRecord::RecordNotFound, :with => :not_found rescue_from CanCan::AccessDenied, :with => :access_denied - # FIXME - remove it for final release - before_filter :beta protected def current_user_session @@ -26,13 +24,6 @@ def signed_in? end private - # FIXME - remove it for final release - def beta - authenticate_or_request_with_http_basic do |username, password| - username == "beta" && password == YAML.load_file(File.join(RAILS_ROOT, 'tmp', 'pass.yml'))["password"] - end - end - def access_denied render 'static/access_denied', :status => 401 end @@ -40,4 +31,4 @@ def access_denied def not_found render 'static/not_found', :status => 404 end -end +end \ No newline at end of file