This commit is contained in:
Chris Blanchard 2015-08-22 11:53:26 +01:00
parent 4377d07095
commit 4cfa9a7e0d

View file

@ -42,7 +42,7 @@ class Topic < ActiveRecord::Base
acts_as_readable
def self.recent_topics
self.find_by_sql %q{
find_by_sql %q{
SELECT DISTINCT topics.*
FROM (SELECT id, topic_id
FROM posts