Permalink
Browse files

use_sprockets is not used anymore

  • Loading branch information...
1 parent 33ee389 commit 16e3c40426c470458764dfd62841d647c725ff35 @spastorino spastorino committed with fxn Jul 26, 2011
@@ -83,11 +83,7 @@ def register_javascript_expansion(expansions)
# 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

0 comments on commit 16e3c40

Please sign in to comment.