Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
load_resource with nested resource loads all records #398
Using rails 3.1.0.rc4 and cancan 1.6.5. My controller contains a simple
When I now visit the index action (has a raise "test" in it so it does nothing), I see in my rails sql log:
As you can see the it loads all customers of the current account, which is really bad for performance. Shouldn't it by default load anything but only create a scope and store this in @customers?