Commit 71fbb91a by tady

set paper_trail on Post

parent dcd1f56a
...@@ -18,6 +18,9 @@ require 'date' ...@@ -18,6 +18,9 @@ require 'date'
class Post < ActiveRecord::Base class Post < ActiveRecord::Base
include HipchatIntegration if Settings.respond_to?(:hipchat) include HipchatIntegration if Settings.respond_to?(:hipchat)
# for versioning
has_paper_trail
###################################################################### ######################################################################
# Associations # Associations
###################################################################### ######################################################################
......
...@@ -38,10 +38,13 @@ ...@@ -38,10 +38,13 @@
.well.detail-wrapper style="margin-top:20px" .well.detail-wrapper style="margin-top:20px"
dl dl
dt 作成 dt 最終編集
dd dd
a href=(search_path(q: "@#{@post.author.nickname}")) a href=(search_path(q: "@#{@post.author.nickname}"))
| @#{@post.author.name} = @post.author.name
dt 最終編集者
dd 調整中
dt タグ dt タグ
dd dd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment