Class: Pageflow::FilesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Pageflow::FilesController
- Includes:
- EntryPasswordProtection, PublicHttpsMode
- Defined in:
- app/controllers/pageflow/files_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/pageflow/files_controller.rb', line 8 def show respond_to do |format| format.html do @entry = PublishedEntry.find(params[:entry_id], entry_request_scope) @file = @entry.find_file(file_type.model, params[:id]) check_entry_password_protection(@entry) end end end |