remove N+1 queries

This commit is contained in:
Sam
2013-03-08 05:34:19 -08:00
parent b27d4dcded
commit d6ca23a75b
3 changed files with 7 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class Site
end
def categories
Category.popular
Category.popular.includes(:topic_only_relative_url)
end
def archetypes