style updates

This commit is contained in:
albert
2013-03-17 23:48:06 -04:00
parent a52eb3ddc2
commit 04b18abc6e
6 changed files with 17 additions and 3 deletions

View File

@@ -109,6 +109,10 @@ class ForumPost < ActiveRecord::Base
def creator_name
User.id_to_name(creator_id)
end
def updater_name
User.id_to_name(updater_id)
end
def quoted_response
stripped_body = body.gsub(/\[quote\](?:.|\n|\r)+?\[\/quote\][\n\r]*/m, "")