Skip to content

Commit

Permalink
do not generate manifest.js in plugins
Browse files Browse the repository at this point in the history
Since the plugin generator do not generate assets, I think manifest.js also that it unnecessary.
  • Loading branch information
y-yagi committed Oct 12, 2015
1 parent f50d953 commit 12248b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -226,7 +226,7 @@ def create_lib_files
end

def create_assets_manifest_file
build(:assets_manifest) unless api?
build(:assets_manifest) if !api? && engine?
end

def create_public_stylesheets_files
Expand Down
1 change: 1 addition & 0 deletions railties/test/generators/plugin_generator_test.rb
Expand Up @@ -60,6 +60,7 @@ def test_generating_without_options
run_generator
assert_file "README.rdoc", /Bukkits/
assert_no_file "config/routes.rb"
assert_no_file "app/assets/config/bukkits_manifest.js"
assert_file "test/test_helper.rb" do |content|
assert_match(/require.+test\/dummy\/config\/environment/, content)
assert_match(/ActiveRecord::Migrator\.migrations_paths.+test\/dummy\/db\/migrate/, content)
Expand Down

0 comments on commit 12248b8

Please sign in to comment.