<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -113,6 +113,8 @@ module Merb
           end
         opts[:src] ||= opts.delete(:path) + img
       end
+      random = opts.delete(:reload) || Merb::Config[:reload_templates]
+      opts[:src] += random_query_string if random
       %{&lt;img #{ opts.to_xml_attributes } /&gt;}
     end
 </diff>
      <filename>merb-assets/lib/merb-assets/assets_mixin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,6 +53,11 @@ describe &quot;Accessing Assets&quot; do
     image_tag('charts', :path =&gt; '/dynamic/').should ==
       &quot;&lt;img src=\&quot;/dynamic/charts\&quot; /&gt;&quot;
   end
+  
+  it &quot;should create image tag with a random query string&quot; do
+    result = image_tag('foo.gif', :reload =&gt; true)
+    result.should match(%r{&lt;img src=&quot;/images/foo.gif\?\d+&quot; /&gt;})
+  end
 
 end
 </diff>
      <filename>merb-assets/spec/merb-assets_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>edb09b83faec5f7fa1d26906ff3305026f5d8373</id>
    </parent>
  </parents>
  <author>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </author>
  <url>http://github.com/wycats/merb-more/commit/f76d1bebfbf5c61425370d15c8f2575537c66e2e</url>
  <id>f76d1bebfbf5c61425370d15c8f2575537c66e2e</id>
  <committed-date>2008-09-24T13:43:17-07:00</committed-date>
  <authored-date>2008-09-24T13:43:17-07:00</authored-date>
  <message>Added :random option to image_tag as well</message>
  <tree>7d2357b456941bba29551da3fbeb3c049d52d7a8</tree>
  <committer>
    <name>Fabien Franzen</name>
    <email>info@atelierfabien.be</email>
  </committer>
</commit>
