aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-18 21:11:06 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-18 21:24:17 +0900
commit8e95feb7234ce62a426418721aecd5e55806507b (patch)
tree4dab455f3a5f29bee5da534c3b40f36f094eff79 /railties/lib
parent011711ecc9bfe9bdbc1fc17d57d511373954d415 (diff)
downloadrails-8e95feb7234ce62a426418721aecd5e55806507b.tar.gz
rails-8e95feb7234ce62a426418721aecd5e55806507b.tar.bz2
rails-8e95feb7234ce62a426418721aecd5e55806507b.zip
set `skip_listen` option to dummy appplication
If you want to use `EventedFileUpdateChecker`, need to specify `listen` to plugin's gemspec. However, the default is not specified `listen` to plugin's gemspec, `EventedFileUpdateChecker` should be disabled.
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/plugin/plugin_generator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
index 565764842b..56efd35a95 100644
--- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
+++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
@@ -90,6 +90,7 @@ task default: :test
opts[:force] = force
opts[:skip_bundle] = true
opts[:api] = options.api?
+ opts[:skip_listen] = true
invoke Rails::Generators::AppGenerator,
[ File.expand_path(dummy_path, destination_root) ], opts