scinote-web/app/serializers/repository_serializer.rb

14 lines
255 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RepositorySerializer < ActiveModel::Serializer
include Rails.application.routes.url_helpers
attributes :urls, :id, :team_id
def urls
{
parse_sheet: parse_sheet_repository_path(object)
}
end
end