<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,16 +1,16 @@
 module RPH
   module PrettyFlash
     module ControllerMethods
-      def notice(msg)
-        flash[:notice] = msg
-      end
-    
-      def warning(msg)
-        flash[:warning] = msg
-      end
-    
-      def error(msg)
-        flash[:error] = msg
+      TYPES = [:notice, :warning, :error]
+      
+      TYPES.each do |type|
+        define_method(type) do |msg|
+          flash[type] = msg
+        end
+        
+        define_method(&quot;#{type}_now&quot;) do |msg|
+          flash.now[type] = msg
+        end
       end
     end
   </diff>
      <filename>lib/pretty_flash.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6459b6dc50296b94d811c56a2ef7fe4b1fec9503</id>
    </parent>
  </parents>
  <author>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </author>
  <url>http://github.com/rpheath/pretty_flash/commit/dcd2a7bef88bf6e7e703855f6f51ca0783858bff</url>
  <id>dcd2a7bef88bf6e7e703855f6f51ca0783858bff</id>
  <committed-date>2009-03-10T08:45:56-07:00</committed-date>
  <authored-date>2009-03-10T08:45:56-07:00</authored-date>
  <message>support flash.now type of messages</message>
  <tree>1f4857e8869024f0ac195df1f9507717873add8e</tree>
  <committer>
    <name>rpheath</name>
    <email>rpheath@gmail.com</email>
  </committer>
</commit>
