* Refactored post history. Each post now has a single history record. This history record has multiple revisions, serialized as JSON in a text field.
This commit is contained in:
6
app/controllers/post_histories_controller.rb
Normal file
6
app/controllers/post_histories_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class PostHistoriesController < ApplicationController
|
||||
def index
|
||||
@search = PostHistory.search(params[:search])
|
||||
@histories = @search.paginate(:page => params[:page], :per_page => 20)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user