summaryrefslogtreecommitdiff
path: root/app/models/forumthread.rb
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-04-28 03:01:33 +0200
committerjomo <github@jomo.tv>2014-04-28 03:01:33 +0200
commit65f5adf65d2cf95bc5b6c06f47cc4d4f860cc7eb (patch)
treef36397378e7527f822a0856e0c83c0ec4bd1d55d /app/models/forumthread.rb
parenta6ba503e735fc32028bd9b48f2eeaada86842546 (diff)
a TON of bugfixes and new features
Diffstat (limited to 'app/models/forumthread.rb')
-rw-r--r--app/models/forumthread.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/forumthread.rb b/app/models/forumthread.rb
index 6be73dd..c6070a7 100644
--- a/app/models/forumthread.rb
+++ b/app/models/forumthread.rb
@@ -23,9 +23,14 @@ class Forumthread < ActiveRecord::Base
end
def editor
+ # can be nil
@editor ||= user_editor
end
+ def edited?
+ !!user_editor_id
+ end
+
def replies
threadreplies
end