search for: pricing_rul

Displaying 1 result from an estimated 1 matches for "pricing_rul".

Did you mean: pricing_rules
2008 May 08
1
Eager loading of association extensions
Hello all, Is it possible to do eager loading of association extensions? That is, the following code produces one SQL query: cat = ProductCategory.find(:first, :include => :pricing_rules) cat.pricing_rules But if in ProductCategory I have an association extension like this: has_many :pricing_rules do def applicable() find(:all).select(&:applicable?) end end the code cat = ProductCategory.find(:first, :include => :pricing_rules) cat.pricing...