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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---