parent
0ca2a73fd2
commit
7421c89431
19 changed files with 262 additions and 17 deletions
19
app/controllers/admin/ngword_histories_controller.rb
Normal file
19
app/controllers/admin/ngword_histories_controller.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Admin
|
||||
class NgwordHistoriesController < BaseController
|
||||
before_action :set_histories
|
||||
|
||||
PER_PAGE = 20
|
||||
|
||||
def index
|
||||
authorize :ng_words, :show?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_histories
|
||||
@histories = NgwordHistory.order(id: :desc).page(params[:page]).per(PER_PAGE)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue