Class: PagesCore::AttachmentsController

Inherits:
ApplicationController show all
Includes:
RangedResponse
Defined in:
app/controllers/pages_core/attachments_controller.rb

Direct Known Subclasses

AttachmentsController

Instance Attribute Summary

Attributes included from Authentication

#current_user

Instance Method Summary collapse

Methods included from RangedResponse

#send_ranged_data

Methods included from StaticCacheController

#disable_static_cache!

Methods included from PoliciesHelper

#policy, #verify_policy, #verify_policy_with_proc

Methods included from ProcessTitler

inc_number_of_requests, original_title

Methods included from ErrorRenderer

#render_error

Methods included from Authentication

#authenticate!, #deauthenticate!, #logged_in?

Instance Method Details

#downloadObject



16
17
18
# File 'app/controllers/pages_core/attachments_controller.rb', line 16

def download
  send_attachment disposition: "attachment"
end

#showObject



12
13
14
# File 'app/controllers/pages_core/attachments_controller.rb', line 12

def show
  send_attachment
end