scinote-web/app/serializers/repository_row_serializer.rb

10 lines
238 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RepositoryRowSerializer < ActiveModel::Serializer
include Rails.application.routes.url_helpers
attributes :id, :name, :code
has_many :repository_cells, serializer: RepositoryCellSerializer
end