Sha256: d6eb5f47bcae8e832dec5013fe4c4a3ee7cb4bb2ca81cab3b921d367d8501970
Contents?: true
Size: 487 Bytes
Versions: 17
Compression:
Stored size: 487 Bytes
Contents
module JSONAPIonify::Api module Resource::Builders module IdentityHelper def build_url URI.parse(request.root_url).tap do |uri| uri.path = File.join uri.path, resource_type, build_id sticky_params = resource.sticky_params(context.params) uri.query = sticky_params.to_param if sticky_params.present? end.to_s end def build_id IdBuilder.build(resource, instance: instance) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems