PERF: avoid method_missing
This commit is contained in:
parent
38f50d3bcc
commit
55c0f6a20c
|
@ -194,7 +194,7 @@ SQL
|
|||
|
||||
def topic_url
|
||||
if has_attribute?("topic_slug")
|
||||
Topic.relative_url(topic_id, topic_slug)
|
||||
Topic.relative_url(topic_id, read_attribute(:topic_slug))
|
||||
else
|
||||
topic_only_relative_url.try(:relative_url)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue