class ActiveModel::Serializer

def root_name

def root_name
  name.demodulize.underscore.sub(/_serializer$/, '') if name
end