Module: AMD::ControllerHelper
- Included in:
- AssetsController
- Defined in:
- lib/amd/controller_helper.rb
Instance Method Summary collapse
Instance Method Details
#finder ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/amd/controller_helper.rb', line 3 def finder path = "#{params[:asset]}.amd" # It's important that the arg passed to asset_path already # be in precompile list module_path = ActionController::Base.helpers.asset_path(path, type: :javascript) redirect_to module_path end |