diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-12-21 19:01:34 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-12-21 19:01:34 -0200 |
commit | 73dcf00c1f95fb561e0d7880828e4a92de4562f3 (patch) | |
tree | 56a1dc66fe4aa1c6f491a204accda24ce4d72b3a /railties/lib/rails/generators | |
parent | f51a30c66692a5da2d5152d5e7e6130d88480c03 (diff) | |
parent | 96093e3cf79c0e809e13b02d12e0705f7acfdf31 (diff) | |
download | rails-73dcf00c1f95fb561e0d7880828e4a92de4562f3.tar.gz rails-73dcf00c1f95fb561e0d7880828e4a92de4562f3.tar.bz2 rails-73dcf00c1f95fb561e0d7880828e4a92de4562f3.zip |
Merge pull request #22685 from jeyb/remove_cable_files_for_skip_action_cable
Ensure Action Cable files are removed when `skip_action_cable` is set.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 44bbc478d0..0819e6c01f 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -313,6 +313,14 @@ module Rails end end + def delete_action_cable_files_skipping_action_cable + if options[:skip_action_cable] + remove_file 'config/redis/cable.yml' + remove_file 'app/assets/javascripts/cable.coffee' + remove_dir 'app/channels' + end + end + def delete_non_api_initializers_if_api_option if options[:api] remove_file 'config/initializers/session_store.rb' |