mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
use_sprockets is not used anymore
This commit is contained in:
committed by
Xavier Noria
parent
33ee3898ef
commit
16e3c40426
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user