Class: Compartment::ThemeAssetsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/compartment/theme_assets_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_site

Instance Method Summary collapse

Methods inherited from ApplicationController

#find_site_by_domain

Instance Method Details

#send_assetObject



6
7
8
9
# File 'app/controllers/compartment/theme_assets_controller.rb', line 6

def send_asset
  file = File.join(Compartment.config.themes_path, params[:theme_name], params[:file] + '.' + params[:ext])
  send_file file
end