2016-11-25 02:26:49 -05:00
|
|
|
class BasicGroupUserSerializer < ApplicationSerializer
|
2017-07-21 02:12:24 -04:00
|
|
|
attributes :group_id, :user_id, :notification_level, :owner
|
|
|
|
|
|
|
|
def include_owner?
|
|
|
|
object.user_id == scope&.user&.id
|
|
|
|
end
|
2016-11-25 02:26:49 -05:00
|
|
|
end
|