suite
This commit is contained in:
parent
6291ba461b
commit
b9fb907881
@ -23,7 +23,7 @@ class ForumTopic < ActiveRecord::Base
|
|||||||
belongs_to :category, :class_name => "ForumCategory"
|
belongs_to :category, :class_name => "ForumCategory"
|
||||||
|
|
||||||
|
|
||||||
default_scope :include => :forum_messages, :order => "forum_messages.created_at DESC"
|
default_scope -> {order "forum_messages.created_at DESC"}
|
||||||
|
|
||||||
after_create do
|
after_create do
|
||||||
topic = self
|
topic = self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user