2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-30 11:25:42 -04:00
|
|
|
class StaffActionLogsSerializer < ApplicationSerializer
|
|
|
|
attributes :user_history_actions
|
|
|
|
has_many :staff_action_logs, serializer: UserHistorySerializer, embed: :objects
|
|
|
|
|
|
|
|
def staff_action_logs
|
|
|
|
object[:staff_action_logs]
|
|
|
|
end
|
|
|
|
|
|
|
|
def user_history_actions
|
|
|
|
object[:user_history_actions]
|
|
|
|
end
|
|
|
|
end
|