13 lines
311 B
Ruby
13 lines
311 B
Ruby
class Admin::CommentsController < Admin::BaseController
|
|
|
|
def index
|
|
@comments = Comment.only_hidden.page(params[:page])
|
|
end
|
|
|
|
def restore
|
|
@comment = Comment.with_hidden.find(params[:id])
|
|
@comment.restore
|
|
redirect_to admin_comments_path, notice: t('admin.comments.restore.success')
|
|
end
|
|
|
|
end |