* Reworked how post versioning works, now more closely resembles the 1.18 strategy
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
class PostHistoriesController < ApplicationController
|
||||
def index
|
||||
@search = PostHistory.search(params[:search])
|
||||
@histories = @search.paginate(:page => params[:page], :per_page => 20, :order => "updated_at DESC")
|
||||
end
|
||||
end
|
||||
6
app/controllers/post_versions_controller.rb
Normal file
6
app/controllers/post_versions_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class PostVersionsController < ApplicationController
|
||||
def index
|
||||
@search = PostVersion.search(params[:search])
|
||||
@post_versions = @search.paginate(:page => params[:page], :per_page => 20, :order => "updated_at DESC")
|
||||
end
|
||||
end
|
||||
@@ -5,7 +5,4 @@ class PostVotesController < ApplicationController
|
||||
rescue PostVote::Error => x
|
||||
@error = x
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user