PERF: avoid method_missing

This commit is contained in:
Sam 2015-10-02 12:27:38 +10:00
parent 38f50d3bcc
commit 55c0f6a20c
1 changed files with 1 additions and 1 deletions

View File

@ -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