# @attributes\_cache in AR model set to nil?

**URL:** <https://www.ruby-forum.com/t/attributes-cache-in-ar-model-set-to-nil/145741>\
**Category:** Rails\
**Created:** [August 13, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/attributes-cache-in-ar-model-set-to-nil/145741 "2008-08-13T15:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 13, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/attributes-cache-in-ar-model-set-to-nil/145741/1 "2008-08-13T15:18:52Z")

</div>

Hi,

did anyone ever ran into the problem that @attributes\_cache being set  
to nil somehow? That problems occurs running “rake spec” but not  
running the single spec. The error occurs e.g. here:

> <https://github.com/rails/rails/blob/main/activerecord/lib/active_record/attribute_methods.rb#L305>

Thanx a lot,

Tobi
