Rename StaffActionLog to UserHistory

This commit is contained in:
Neil Lalonde
2013-09-10 21:21:16 -04:00
parent f2a1ef8d7d
commit e8ef55c446
11 changed files with 75 additions and 43 deletions

View File

@ -1,8 +1,8 @@
class Admin::StaffActionLogsController < Admin::AdminController
def index
staff_action_logs = StaffActionLog.with_filters(params.slice(:action_name, :staff_user, :target_user, :subject)).limit(200).order('id DESC').includes(:staff_user, :target_user).to_a
render_serialized(staff_action_logs, StaffActionLogSerializer)
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