aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-26 01:00:00 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-26 01:00:00 -0300
commitb4e577945b882594425082ae16e2076cc82bdc72 (patch)
tree585b0615c132016e7eae2e1b89cb5b304af6f104 /actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb
parent155bb7c75d3cf403c013a713d704267e284b5a14 (diff)
downloadrails-b4e577945b882594425082ae16e2076cc82bdc72.tar.gz
rails-b4e577945b882594425082ae16e2076cc82bdc72.tar.bz2
rails-b4e577945b882594425082ae16e2076cc82bdc72.zip
use_sprockets is not used anymore
Diffstat (limited to 'actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb')
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb6
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