]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Refactor the from_xml methods to act on existing trace objects.
[rails.git] / app / controllers / application_controller.rb
index a367a1b0a756ed257ea68905d98af50e6b4fe6a6..68fc4338ee7a90d66b28d280faeee3be9bd90208 100644 (file)
@@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
 
   before_action :fetch_body
 
+  attr_accessor :current_user
   helper_method :current_user
 
   def authorize_web
@@ -468,16 +469,6 @@ class ApplicationController < ActionController::Base
     [user, pass]
   end
 
-  # used to get the current logged in user
-  def current_user
-    @user
-  end
-
-  # used to set the current logged in user
-  def current_user=(user)
-    @user = user
-  end
-
   # override to stop oauth plugin sending errors
   def invalid_oauth_response; end
 end