Displaying 2 results from an estimated 2 matches for "rozga".
Did you mean:
roza
2006 Sep 18
5
Undefined method "updated?"
...;'
I''m having a hard time finding out why this is happening and where I
should start investigating the matter. I tried looking through the
ActiveRecord code, but I can''t locate where the "updated?" call is even
coming from.
Any help is appreciated.
Thanks,
-Szymon Rozga
--~--~---------~--~----~------------~-------~--~----~
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...
2006 Sep 13
1
Eager loading with acts_as_tree
So I have a model that acts_as_tree and I run a method on a collection
of all of these records. This method walks the tree and fetches the
parent/children, etc. This results in many, many duplicate SQL queries
to be executed. Is there a way to eagerly load all of these models?
Something along the lines of:
Model.find(:all, :include => [:children, :parent])
If I execute the above statement, I