Sha256: 0c4a4cee9298e2a6098ca338fe13e47569854156b653680b2d04b5f67ea9793a
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
module Apress module Documentation module DocumentsHelper def document_url_with_swagger(document) if document.is_a?(Apress::Documentation::Storage::SwaggerDocument) js_path = "#!/#{document.tag}/#{document.operation_id}" documentation_url(path: document.document.slug.to_s) + js_path else documentation_url(path: document.slug.to_s) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apress-documentation-0.4.0 | app/helpers/apress/documentation/documents_helper.rb |