From 78d2640ddb657812cc64829619be152f5c1dec0c Mon Sep 17 00:00:00 2001 From: "geemus (Wesley Beary)" Date: Thu, 11 Mar 2010 07:48:12 -0800 Subject: [PATCH] make body not be an attribute, preventing overly aggressive lazy_loading --- lib/fog/aws/models/s3/file.rb | 2 +- lib/fog/rackspace/models/files/file.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/s3/file.rb b/lib/fog/aws/models/s3/file.rb index 549657b46..674a4c44a 100644 --- a/lib/fog/aws/models/s3/file.rb +++ b/lib/fog/aws/models/s3/file.rb @@ -6,7 +6,7 @@ module Fog identity :key, 'Key' - attribute :body + attr_accessor :body attribute :content_length, 'Content-Length' attribute :content_type, 'Content-Type' attribute :etag, ['Etag', 'ETag'] diff --git a/lib/fog/rackspace/models/files/file.rb b/lib/fog/rackspace/models/files/file.rb index 1b6ace106..75a32585d 100644 --- a/lib/fog/rackspace/models/files/file.rb +++ b/lib/fog/rackspace/models/files/file.rb @@ -6,7 +6,7 @@ module Fog identity :key, 'Key' - attribute :body + attr_accessor :body attribute :content_length, 'Content-Length' attribute :content_type, 'Content-Type' attribute :etag, 'Etag'