]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Refactor terms declined flash message to use a partial
[rails.git] / app / controllers / users_controller.rb
index 43933041cab0543a6653a014b7bb0f569962e5e2..00d427ac944680bdf21273b871f656fa3f557614 100644 (file)
@@ -42,7 +42,7 @@ class UsersController < ApplicationController
       if current_user
         current_user.terms_seen = true
 
-        flash[:notice] = t("users.new.terms declined", :url => t("users.new.terms declined url")).html_safe if current_user.save
+        flash[:notice] = { :partial => "users/terms_declined_flash" } if current_user.save
 
         if params[:referer]
           redirect_to safe_referer(params[:referer])