scinote-web/app/serializers/shareable_links_serializer.rb
ajugo 6c6fc404d2
Implement task shareable modal [SCI-8651] (#5723)
* Implement task shareable modal [SCI-8651]

* Fix routes [SCI-8651]

* Clean code for vue share button initilization [SCI-8651]
2023-07-06 16:05:03 +02:00

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