class MembershipSerializer < ActiveModel::Serializer
  embed :ids, include: true
  attributes :id, :volume, :admin, :experiences

  has_one :group, serializer: GroupSerializer, root: :groups
  has_one :user, serializer: UserSerializer, root: :users
  has_one :inviter, serializer: UserSerializer, root: :users


  def include_inviter?
    [nil, true].include? (scope || {})[:include_inviter]
  end
end

class MembershipSerializer < ActiveModel::Serializer
  embed :ids, include: true
  attributes :id, :volume, :admin, :experiences, :created_at

  has_one :group, serializer: GroupSerializer, root: :groups
  has_one :user, serializer: UserSerializer, root: :users
  has_one :inviter, serializer: UserSerializer, root: :users


  def include_inviter?
    [nil, true].include? (scope || {})[:include_inviter]
  end
end

Add created_at to membership serializer
Add created_at to membership serializer
