action_logs_controller.rb 425 B

12345678910111213141516171819
  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