Robin sucks at merging! This fixes a n+1 query.

This commit is contained in:
Robin Ward 2013-03-08 16:48:56 -05:00
parent 4c7b0a42b5
commit 8c02d2f48d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Category < ActiveRecord::Base
end
def topic_url
topic.try(:relative_url)
topic_only_relative_url.try(:relative_url)
end
def ensure_slug