features, bug fixes
This commit is contained in:
@@ -11,4 +11,16 @@ class Forumthread < ActiveRecord::Base
|
||||
def to_s
|
||||
title
|
||||
end
|
||||
|
||||
def author
|
||||
@author ||= if self.user_author.present?
|
||||
user_author
|
||||
else
|
||||
User.first
|
||||
end
|
||||
end
|
||||
|
||||
def editor
|
||||
@editor ||= user_editor
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user