]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
We don't need the @notice hack - we can use flash.now to achieve the same thing.
[rails.git] / app / views / layouts / site.html.erb
index 89b33ab05db12288d3ff0344821ee75ccb1d1843..34738f73b9805897d80e29d0c7f45d12ec5ea007 100644 (file)
@@ -18,8 +18,8 @@
   </head>
   <body>
     <div id="content">
-      <% if @notice || flash[:notice] %>
-        <div id="notice"><%= @notice || flash[:notice] %></div>
+      <% if flash[:notice] %>
+        <div id="notice"><%= flash[:notice] %></div>
       <% end %>
 
       <%= yield %>