# Associations, find and options hash

**URL:** <https://www.ruby-forum.com/t/associations-find-and-options-hash/116192>\
**Category:** Rails\
**Created:** [October 3, 2007, 10:55am UTC](https://www.ruby-forum.com/t/associations-find-and-options-hash/116192 "2007-10-03T10:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantulis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b4bc9f/32.png) [@pantulis](https://www.ruby-forum.com/u/pantulis)\
**Post date:** [October 3, 2007, 10:55am UTC](https://www.ruby-forum.com/t/associations-find-and-options-hash/116192/1 "2007-10-03T10:55:09Z")

</div>

Hi, I’ve observed that finds over associations modify the options  
hashed passed to them:

class Parent \< ActiveRecord::Base  
has\_many :sons

def something\_about\_sons  
options = { :conditions =\> “id \< 10” }  
logger.info options  
s = sons.find(:all, options)  
logger.info options  
s  
end  
end

The options hash passed to find is not being dupped, is this the  
expected behaviour (Rails 1.2.3)?

Thanks
