class ActiveModelSerializers::Model

def id

Defaults to the downcased model name.
def id
  attributes.fetch(:id) { self.class.name.downcase }
end