mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
6c6fc404d2
* Implement task shareable modal [SCI-8651] * Fix routes [SCI-8651] * Clean code for vue share button initilization [SCI-8651]
11 lines
246 B
Ruby
11 lines
246 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ShareableLinksSerializer < ActiveModel::Serializer
|
|
include Rails.application.routes.url_helpers
|
|
|
|
attributes :shareable_url, :description
|
|
|
|
def shareable_url
|
|
shared_protocol_url(object.uuid)
|
|
end
|
|
end
|