闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
425 B

  1. # frozen_string_literal: true
  2. module Admin
  3. class ActionLogsController < BaseController
  4. before_action :set_action_logs
  5. def index; end
  6. private
  7. def set_action_logs
  8. @action_logs = Admin::ActionLogFilter.new(filter_params).results.page(params[:page])
  9. end
  10. def filter_params
  11. params.slice(:page, *Admin::ActionLogFilter::KEYS).permit(:page, *Admin::ActionLogFilter::KEYS)
  12. end
  13. end
  14. end