Sha256: 0484ff7ae127315f1b049aa69fb8b1d2b0b2b43c42864a4a1d056554468c2438
Contents?: true
Size: 365 Bytes
Versions: 8
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true module Shimmer class SitemapsController < ActionController::Base def show path = "sitemaps/#{params.require(:path)}.gz" filename = "sitemap_#{params[:path]}.xml.gz" send_data ActiveStorage::Blob.service.download(path), filename: filename, type: "application/gzip", disposition: "attachment" end end end
Version data entries
8 entries across 8 versions & 1 rubygems