config.assets.enabled isn't used anymore to disable Rails asset pipeline

This commit is contained in:
Guillermo Iguaran 2013-12-01 02:15:50 -05:00
parent e898baa553
commit d30cf963eb
2 changed files with 0 additions and 6 deletions

View File

@ -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

View File

@ -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)