mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 13:45:25 +08:00
20 lines
360 B
Ruby
20 lines
360 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class RepositoryCellImportSerializer < ActiveModel::Serializer
|
||
|
include Rails.application.routes.url_helpers
|
||
|
|
||
|
attributes :id, :value, :changes, :repository_column_id, :formatted_value
|
||
|
|
||
|
def changes
|
||
|
object.value.changes
|
||
|
end
|
||
|
|
||
|
def value
|
||
|
object.value
|
||
|
end
|
||
|
|
||
|
def formatted_value
|
||
|
object.value.formatted
|
||
|
end
|
||
|
end
|