Class: AssetsOfflineController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/assets_offline_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/assets_offline_controller.rb', line 6

def show
  # Load the configuration file and make it accessible to the template.
  config = YAML.load_file("#{Rails.root}/config/assets_offline.yml")
  @root = config[params[:id]]

  # Generate the checksum for the file.
  @key = generate_key()

  respond_to do |format|
    format.manifest
  end
end