<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 require &quot;has_storage&quot;
 require &quot;ftools&quot;
+require &quot;digest/sha1&quot;
 
 ActiveRecord::Base.send(:include, SimplesIdeias::Storages)
 require File.dirname(__FILE__) + &quot;/lib/storage&quot;</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -125,7 +125,7 @@ module SimplesIdeias
               when &quot;extension&quot;    then extension
               when &quot;storage_name&quot; then storage_name
               when &quot;hash&quot;         then
-                CGI::Session.generate_unique_id(&quot;#{Time.now.utc}#{storage_name}#{instance.id}&quot;)
+                Digest::SHA1.hexdigest(&quot;#{Time.now.utc}#{storage_name}#{instance.id}&quot;)
               else
                 instance.send(placeholder).to_s
             end</diff>
      <filename>lib/attachment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -163,7 +163,7 @@ describe &quot;has_storage&quot; do
       
       @now = Time.now.utc
       Time.stub!(:now).and_return(@now)
-      CGI::Session.should_receive(:generate_unique_id).with(&quot;#{@now}users#{@homer.id}&quot;).and_return(&quot;abc&quot;)
+      Digest::SHA1.should_receive(:hexdigest).with(&quot;#{@now}users#{@homer.id}&quot;).and_return(&quot;abc&quot;)
       
       @homer.file = @file
       @homer.save</diff>
      <filename>test/has_storage_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cbba40da0026883502e176bcbdda4e2a8a95720e</id>
    </parent>
  </parents>
  <author>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </author>
  <url>http://github.com/fnando/has_storage/commit/222ffb00dee50949c4ce04f6a068248c524a2bd4</url>
  <id>222ffb00dee50949c4ce04f6a068248c524a2bd4</id>
  <committed-date>2009-02-20T10:27:04-08:00</committed-date>
  <authored-date>2009-02-20T10:27:04-08:00</authored-date>
  <message>Fixing Rails 2.3 incompatibily; CGI::Session has been replaced by ActionController::Session.</message>
  <tree>f338f8d753ae9e3c52990512188f72a9487f961e</tree>
  <committer>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </committer>
</commit>
