Cross Reference: application_serializer.rb
xref
: /
ontohub
/
app
/
serializers
/
application_serializer.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
application_serializer.rb revision c438a78969cee42951bb42899855cdb1a965dd55
class
ApplicationSerializer
<
ActiveModel
::
Serializer
def
urls
Rails.application.routes.url
_helpers
end
def
qualified_locid_for
(
resource
, *
commands
, **
query_components
)
iri
=
"#{
Settings.hostname
}#{
resource.locid
}"
iri
<<
"///#{
commands.join
('///')}"
if
commands.any
?
iri
<<
"?#{
query_components.to
_query}"
if
query_components.any
?
iri
end
end