Class: Pageflow::FilesController

Inherits:
ApplicationController show all
Includes:
EntryPasswordProtection, PublicHttpsMode
Defined in:
app/controllers/pageflow/files_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



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