mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
15 lines
257 B
Ruby
15 lines
257 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RepositoryCellSerializer < ActiveModel::Serializer
|
|
include Rails.application.routes.url_helpers
|
|
|
|
attributes :id, :value, :changes
|
|
|
|
def changes
|
|
object.value.changes
|
|
end
|
|
|
|
def value
|
|
object.value
|
|
end
|
|
end
|