Please sign in to comment.
pass app config to controller helper proxy
After this fix application config become available when calling helper outisde of view config/application.rb #... config.asset_host = 'http://mycdn.com' #... Somewhere else ActionController::Base.helpers.asset_path('fallback.png') # => http://mycdn.com/assets/fallback.png
- Loading branch information...
Showing with 11 additions and 1 deletion.