mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 14:17:00 +08:00
15 lines
298 B
Ruby
15 lines
298 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RepositoryCellSerializer < ActiveModel::Serializer
|
|
include Rails.application.routes.url_helpers
|
|
|
|
attributes :id, :value, :repository_column_id, :formatted_value
|
|
|
|
def value
|
|
object.value
|
|
end
|
|
|
|
def formatted_value
|
|
object.value.formatted
|
|
end
|
|
end
|