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