mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
Robin sucks at merging! This fixes a n+1 query.
This commit is contained in:
parent
4c7b0a42b5
commit
8c02d2f48d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user