diff options
author | David Gil <dgilperez@gmail.com> | 2018-12-14 21:40:04 +0100 |
---|---|---|
committer | David Gil <dgilperez@gmail.com> | 2018-12-14 21:40:04 +0100 |
commit | 5c3f0d2e19bfe56c14c9fbea213e4421003f7b1b (patch) | |
tree | d0aece63cd41d7f9242e442a8bc713323a7e583b /lib/tasks | |
parent | d872de3c69a8762834d206d2f080550c39143080 (diff) | |
download | rails-5c3f0d2e19bfe56c14c9fbea213e4421003f7b1b.tar.gz rails-5c3f0d2e19bfe56c14c9fbea213e4421003f7b1b.tar.bz2 rails-5c3f0d2e19bfe56c14c9fbea213e4421003f7b1b.zip |
Uses the new generator to install ApplicationMailbox in action_mailbox:install rake
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/install.rake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake index cfc06fbb5f..1f4c071494 100644 --- a/lib/tasks/install.rake +++ b/lib/tasks/install.rake @@ -5,11 +5,10 @@ namespace :action_mailbox do Rake::Task["install:migrations"].clear_comments desc "Copy over the migration" - task install: %w[ environment run_installer copy_migrations ] + task install: %w[ environment run_generator copy_migrations ] - task :run_installer do - installer_template = File.expand_path("../templates/installer.rb", __dir__) - system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{installer_template}" + task :run_generator do + system "#{RbConfig.ruby} ./bin/rails generate mailbox application" end task :copy_migrations do |