ruby 1.8 hated it
Oleg
committed Aug 25, 2011
commit 49a4a77913b3858a09472a91576328ab446c2e22
Showing 1
changed file with
1 additions
and 3 deletions
comfortable_mexican_sofa/extensions/is_categorized.rb b/lib/comfortable_mexican_sofa/extensions/is_categorized.rb
+1
-3
| @@ | @@ -20,9 +20,7 @@ module ComfortableMexicanSofa::IsCategorized |
| scope :for_category, lambda { |*categories| | |
| if (categories = [categories].flatten.compact).present? | |
| - | select("DISTINCT #{table_name}.*") |
| - | .joins(:categorizations => :category) |
| - | .where('cms_categories.label' => categories) |
| + | select("DISTINCT #{table_name}.*").joins(:categorizations => :category).where('cms_categories.label' => categories) |
| end | |
| } | |
| end | |