diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-26 01:00:00 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-26 01:00:00 -0300 |
commit | b4e577945b882594425082ae16e2076cc82bdc72 (patch) | |
tree | 585b0615c132016e7eae2e1b89cb5b304af6f104 /actionpack | |
parent | 155bb7c75d3cf403c013a713d704267e284b5a14 (diff) | |
download | rails-b4e577945b882594425082ae16e2076cc82bdc72.tar.gz rails-b4e577945b882594425082ae16e2076cc82bdc72.tar.bz2 rails-b4e577945b882594425082ae16e2076cc82bdc72.zip |
use_sprockets is not used anymore
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb b/actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb index 0f8a63901e..25cc561608 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb @@ -83,11 +83,7 @@ module ActionView # javascript_path "http://www.example.com/js/xmlhr" # => http://www.example.com/js/xmlhr # javascript_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js def javascript_path(source) - if config.use_sprockets - asset_path(source, 'js') - else - asset_paths.compute_public_path(source, 'javascripts', 'js') - end + asset_paths.compute_public_path(source, 'javascripts', 'js') end alias_method :path_to_javascript, :javascript_path # aliased to avoid conflicts with a javascript_path named route |