]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Fix style issues found by new rubocop version
[rails.git] / app / controllers / application_controller.rb
index 72de936d7f629eabc83ade79c0fab3a4018c237e..618f08a1fc84e3fb6281d15b4dca21f6addfc5e1 100644 (file)
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
 
   protect_from_forgery
 
-  before_filter :fetch_body
+  before_action :fetch_body
 
   def authorize_web
     if session[:user]
@@ -389,12 +389,6 @@ class ApplicationController < ActionController::Base
     render :action => "timeout"
   end
 
-  ##
-  # is the requestor logged in?
-  def logged_in?
-    !@user.nil?
-  end
-
   ##
   # ensure that there is a "this_user" instance variable
   def lookup_this_user