Class: Compartment::ThemeAssetsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Compartment::ThemeAssetsController
- Defined in:
- app/controllers/compartment/theme_assets_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#send_asset ⇒ Object
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 |