more fixes, changes, support for new mojang API

This commit is contained in:
jomo
2014-04-18 14:35:18 +02:00
parent 7135d2690c
commit 0264f239ba
62 changed files with 4927 additions and 15 deletions

View File

@@ -8,6 +8,10 @@ class Threadreply < ActiveRecord::Base
validates_presence_of :content
validates_length_of :content, in: 2..10000
def thread
forumthread
end
def author
@author ||= if self.user_author.present?
user_author