]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Remove incorrectly spelled helper_method
[rails.git] / app / controllers / application_controller.rb
index fc8b75b60144ec40e2bf2a851ae7fcdce8c171da..2a1c3d6759c1777589f65e308e1123bde8b706fc 100644 (file)
@@ -17,7 +17,6 @@ class ApplicationController < ActionController::Base
 
   helper_method :current_user
   helper_method :oauth_token
-  helper_method :preferred_langauges
 
   private
 
@@ -67,7 +66,7 @@ class ApplicationController < ActionController::Base
   end
 
   def require_oauth
-    @oauth_token = current_user.access_token(Settings.oauth_key) if current_user && Settings.key?(:oauth_key)
+    @oauth_token = current_user.oauth_token(Settings.oauth_application) if current_user && Settings.key?(:oauth_application)
   end
 
   ##