Sha256: 09d5b7a14f2682c3331e740806703f1f078a69c8e93476b588d0947a03d022f0
Contents?: true
Size: 383 Bytes
Versions: 6
Compression:
Stored size: 383 Bytes
Contents
module Cms class AttachmentsController < Cms::BaseController def show @attachment = Attachment.find(params[:id]) @attachment = @attachment.as_of_version(params[:version]) if params[:version] send_file(@attachment.full_file_location, :filename => @attachment.file_name, :type => @attachment.file_type, :disposition => "inline" ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems