Class Cms::AttachmentsController
In: app/controllers/cms/attachments_controller.rb
Parent: Cms::BaseController

Methods

show  

Public Instance methods

[Source]

    # File app/controllers/cms/attachments_controller.rb, line 2
 2:   def show
 3:     @attachment = Attachment.find(params[:id])
 4:     @attachment = @attachment.as_of_version(params[:version]) if params[:version]
 5:     send_file(@attachment.full_file_location, 
 6:       :filename => @attachment.file_name,
 7:       :type => @attachment.file_type,
 8:       :disposition => "inline"
 9:     )     
10:   end

[Validate]