Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

[Standup][SF] 12/30/2011 Moving

Ask for Help

“Is there way to test if the Active Record associations you’re trying to eager load with :includes are actually loaded?”

One solution would be to call .loaded on the proxy object which control the access to associations. Another would be to count the sql queries that the block of code makes.

Interesting things

When you query a table with a column containing string values, if you do Model.where(:string => 0) without using quotes for the 0, Rails will not to_s the 0 for you and the query will return the entire table.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *