mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-29 20:50:43 +00:00
Hound
This commit is contained in:
parent
9ba7f4b0d1
commit
eecabbf1e6
1 changed files with 13 additions and 13 deletions
|
@ -42,7 +42,7 @@ class Topic < ActiveRecord::Base
|
||||||
acts_as_readable
|
acts_as_readable
|
||||||
|
|
||||||
def self.recent_topics
|
def self.recent_topics
|
||||||
self.find_by_sql %q{
|
find_by_sql %q{
|
||||||
SELECT DISTINCT topics.*
|
SELECT DISTINCT topics.*
|
||||||
FROM (SELECT id, topic_id
|
FROM (SELECT id, topic_id
|
||||||
FROM posts
|
FROM posts
|
||||||
|
|
Loading…
Reference in a new issue