another big commit :D
This commit is contained in:
9
app/models/forumthread.rb
Normal file
9
app/models/forumthread.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class Forumthread < ActiveRecord::Base
|
||||
belongs_to :forum
|
||||
belongs_to :user_author, class_name: "User", foreign_key: "user_author_id"
|
||||
belongs_to :user_editor, class_name: "User", foreign_key: "user_editor_id"
|
||||
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user