FIX: actually retrieve the first 2 posts in a conversation about a flag

This commit is contained in:
Régis Hanol
2014-07-28 22:54:03 +02:00
parent f6a15893e4
commit 44ba74789b
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -76,6 +76,7 @@ class Topic < ActiveRecord::Base
belongs_to :category
has_many :posts
has_many :ordered_posts, -> { order(post_number: :asc) }, class_name: "Post"
has_many :topic_allowed_users
has_many :topic_allowed_groups