mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-04 01:43:55 -04:00
Robin sucks at merging! This fixes a n+1 query.
This commit is contained in:
parent
4c7b0a42b5
commit
8c02d2f48d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class Category < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def topic_url
|
def topic_url
|
||||||
topic.try(:relative_url)
|
topic_only_relative_url.try(:relative_url)
|
||||||
end
|
end
|
||||||
|
|
||||||
def ensure_slug
|
def ensure_slug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue