<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -167,7 +167,7 @@ module Technoweenie # :nodoc:
         base.after_save :after_process_attachment
         base.after_destroy :destroy_file
         base.after_validation :process_attachment
-        base.attr_accessible 
+        base.attr_accessible :uploaded_data
         if defined?(::ActiveSupport::Callbacks)
           base.define_callbacks :after_resize, :after_attachment_saved, :before_thumbnail_saved
         end
@@ -274,12 +274,12 @@ module Technoweenie # :nodoc:
       def create_or_update_thumbnail(temp_file, file_name_suffix, *size)
         thumbnailable? || raise(ThumbnailError.new(&quot;Can't create a thumbnail if the content type is not an image or there is no parent_id column&quot;))
         returning find_or_initialize_thumbnail(file_name_suffix) do |thumb|
-          thumb.attributes = {
+          thumb.temp_paths.unshift temp_file
+          thumb.send(:'attributes=', {
             :content_type             =&gt; content_type,
             :filename                 =&gt; thumbnail_name_for(file_name_suffix),
-            :temp_path                =&gt; temp_file,
             :thumbnail_resize_options =&gt; size
-          }
+          }, false)
           callback_with_args :before_thumbnail_saved, thumb
           thumb.save!
         end</diff>
      <filename>lib/technoweenie/attachment_fu.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cda2d14898347fa949c8e7d7ddbf9b1b7298fe7f</id>
    </parent>
  </parents>
  <author>
    <name>satoshi</name>
    <login></login>
    <email>solum13@gmail.com</email>
  </author>
  <url>http://github.com/technoweenie/attachment_fu/commit/9d754014744b039d82e3e55b3cc7f7c35c16ab08</url>
  <id>9d754014744b039d82e3e55b3cc7f7c35c16ab08</id>
  <committed-date>2008-10-07T05:06:57-07:00</committed-date>
  <authored-date>2008-10-07T05:06:57-07:00</authored-date>
  <message>Quick fix for creating thumbnails</message>
  <tree>35ed9ecdebc776142edd7ebc952ba224eec1e356</tree>
  <committer>
    <name>satoshi</name>
    <login></login>
    <email>solum13@gmail.com</email>
  </committer>
</commit>
