mirror of https://github.com/rails/rails
config.assets.enabled isn't used anymore to disable Rails asset pipeline
This commit is contained in:
parent
e898baa553
commit
d30cf963eb
|
@ -30,10 +30,5 @@ module <%= app_const_base %>
|
|||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
# config.i18n.default_locale = :de
|
||||
<% if options.skip_sprockets? -%>
|
||||
|
||||
# Disable the asset pipeline.
|
||||
config.assets.enabled = false
|
||||
<% end -%>
|
||||
end
|
||||
end
|
||||
|
|
|
@ -291,7 +291,6 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
run_generator [destination_root, "--skip-sprockets"]
|
||||
assert_file "config/application.rb" do |content|
|
||||
assert_match(/#\s+require\s+["']sprockets\/railtie["']/, content)
|
||||
assert_match(/config\.assets\.enabled = false/, content)
|
||||
end
|
||||
assert_file "Gemfile" do |content|
|
||||
assert_no_match(/sass-rails/, content)
|
||||
|
|
Loading…
Reference in New Issue