summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 5ac5c639f39..334135c89c2 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,7 +2,6 @@ class ApplicationController < ActionController::Base
before_filter :authenticate_user!
before_filter :reject_blocked!
before_filter :set_current_user_for_mailer
- before_filter :check_token_auth
before_filter :set_current_user_for_observers
before_filter :dev_tools if Rails.env == 'development'
@@ -26,13 +25,6 @@ class ApplicationController < ActionController::Base
protected
- def check_token_auth
- # Redirect to login page if not atom feed
- if params[:private_token].present? && params[:format] != 'atom'
- redirect_to new_user_session_path
- end
- end
-
def reject_blocked!
if current_user && current_user.blocked
sign_out current_user
@@ -113,7 +105,7 @@ class ApplicationController < ActionController::Base
end
def render_404
- render file: File.join(Rails.root, "public", "404"), layout: false, status: "404"
+ render file: Rails.root.join("public", "404"), layout: false, status: "404"
end
def require_non_empty_project
@@ -126,10 +118,6 @@ class ApplicationController < ActionController::Base
response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end
- def render_full_content
- @full_content = true
- end
-
def dev_tools
Rack::MiniProfiler.authorize_request
end