<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1 @@
-tmp/**/*
-log/*.log
-db/*.sqlite3
-nbproject
+couch_potato_js_runner.js</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,8 @@
 
 ### 0.2.15
 * ability to change the name of the attribute that stores the ruby class in the documents by setting JSON.create_id (lennart)
+* fixed double loading issue with bundler (jweiss)
+* fixed an issue with setting attachments (endor)
 
 ### 0.2.13
 </diff>
      <filename>CHANGES.md</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ module CouchPotato
         attr_writer :_attachments
         
         def _attachments
-          @_attachments || {}
+          @_attachments ||= {}
         end
         
         base.extend ClassMethods</diff>
      <filename>lib/couch_potato/persistence/attachments.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/spec_helper'
 describe CouchPotato, 'attachments' do
   it &quot;should persist an attachment&quot; do
     comment = Comment.new :title =&gt; 'nil'
-    comment._attachments = {'body' =&gt; {'data' =&gt; 'a useful comment', 'content_type' =&gt; 'text/plain'}}
+    comment._attachments['body'] = {'data' =&gt; 'a useful comment', 'content_type' =&gt; 'text/plain'}
     CouchPotato.database.save! comment
     CouchPotato.couchrest_database.fetch_attachment(comment.to_hash, 'body').to_s.should == 'a useful comment'
   end</diff>
      <filename>spec/attachments_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>couch_potato_js_runner.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>9e65bda53c1fae7e7306e9da6de0eba9597d8b36</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </author>
  <url>http://github.com/langalex/couch_potato/commit/c01b0778f5b92df1d19413b5167b1b48ee6f8efb</url>
  <id>c01b0778f5b92df1d19413b5167b1b48ee6f8efb</id>
  <committed-date>2009-11-09T02:52:05-08:00</committed-date>
  <authored-date>2009-11-09T02:52:05-08:00</authored-date>
  <message>fixed issue with setting attachments</message>
  <tree>9bfda1ba556a5a948c39bdc6540cfedfa1395a0b</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </committer>
</commit>
