discourse/app/controllers/admin/staff_action_logs_controller.rb

9 lines
356 B
Ruby
Raw Normal View History

class Admin::StaffActionLogsController < Admin::AdminController
def index
2013-09-10 21:21:16 -04:00
staff_action_logs = UserHistory.with_filters(params.slice(:action_name, :acting_user, :target_user, :subject)).only_staff_actions.limit(200).order('id DESC').includes(:acting_user, :target_user).to_a
render_serialized(staff_action_logs, UserHistorySerializer)
end
end