lib/lazy_resource/attributes.rb in lazy_resource-0.3.3 vs lib/lazy_resource/attributes.rb in lazy_resource-0.4.0

- old
+ new

@@ -71,11 +71,11 @@ method << <<-RUBY return [] if self.#{options[:using]}.nil? if @#{name}.nil? @#{name} = LazyResource::Relation.new(#{type.first}, :fetched => true) + request = LazyResource::Request.new(self.#{options[:using]}, @#{name}, :headers => @#{name}.headers) @#{name}.fetched = false - request = LazyResource::Request.new(self.#{options[:using]}, @#{name}) self.class.request_queue.queue(request) end @#{name} RUBY