]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
We don't need the @notice hack - we can use flash.now to achieve the same thing.
[rails.git] / app / controllers / application_controller.rb
index e36c9842ba6c55eea2e652d453b60d16732bc86e..ed007cad34c1ee1b0674fb67dafab322adb09419 100644 (file)
@@ -47,7 +47,7 @@ class ApplicationController < ActionController::Base
         redirect_to params.merge(:cookie_test => "true")
         return false
       else
-        @notice = t 'application.require_cookies.cookies_needed'
+        flash.now[:notice] = t 'application.require_cookies.cookies_needed'
       end
     end
   end