diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-07 19:13:10 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-07 19:13:10 -0300 |
commit | e01aba15043fabf937bd6dbb818b6bce9a90651a (patch) | |
tree | 73d72a5532c7a8b9720a2aa19dce42ed65b5f89d /actionpack/lib/sprockets/helpers/rails_helper.rb | |
parent | 2a24bcc6cf97fa9ecb78fa21ec23b25438d20371 (diff) | |
download | rails-e01aba15043fabf937bd6dbb818b6bce9a90651a.tar.gz rails-e01aba15043fabf937bd6dbb818b6bce9a90651a.tar.bz2 rails-e01aba15043fabf937bd6dbb818b6bce9a90651a.zip |
Move config.default_asset_host_protocol to the railtie.
Diffstat (limited to 'actionpack/lib/sprockets/helpers/rails_helper.rb')
-rw-r--r-- | actionpack/lib/sprockets/helpers/rails_helper.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index 7d709de9e2..a95e7c0649 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -9,13 +9,8 @@ module Sprockets def asset_paths @asset_paths ||= begin config = self.config if respond_to?(:config) + config ||= Rails.application.config controller = self.controller if respond_to?(:controller) - config ||= Rails.application.config - if config.action_controller.present? - config.action_controller.default_asset_host_protocol ||= :relative - else - config.default_asset_host_protocol ||= :relative - end paths = RailsHelper::AssetPaths.new(config, controller) paths.asset_environment = asset_environment paths.asset_prefix = asset_prefix |