diff --git a/config/initializers/revved_asset_urls.rb b/config/initializers/revved_asset_urls.rb index ce65450570a..27ae8ed1a6c 100644 --- a/config/initializers/revved_asset_urls.rb +++ b/config/initializers/revved_asset_urls.rb @@ -19,7 +19,11 @@ # instead of doing it's normal cache busting stuff on the url. # eg: instead of '/images/whatever.png?12345', we want '/dist/images/whatever-.png'. # There is a different method that needs to be monkeypatched for rails 3 vs rails 4 -require 'action_view/helpers/asset_url_helper' + + + +require 'action_view/helpers' + module RevAssetPaths def path_to_asset(source, options = {}) original_path = super diff --git a/lib/tasks/css.rake b/lib/tasks/css.rake index 8e781c67b45..8d73b45f801 100644 --- a/lib/tasks/css.rake +++ b/lib/tasks/css.rake @@ -9,6 +9,7 @@ namespace :css do task :compile do # try to get a conection to the database so we can do the brand_configs:write below require 'config/environment' rescue nil + require 'config/initializers/revved_asset_urls' require 'lib/brandable_css' puts "--> Starting: 'css:compile'" time = Benchmark.realtime do