Refactoring: Execute AutoWizard.setup instead of starting a new process since we are already in the Rails application context.

This commit is contained in:
Thorsten Eckel 2018-04-26 11:29:47 +02:00
parent ee0b51b670
commit b66adbaba7

View file

@ -23,5 +23,5 @@ end
def run_auto_wizard
FileUtils.ln(AUTO_WIZARD[:source], AUTO_WIZARD[:destination], force: true)
system('rails runner "AutoWizard.setup"')
AutoWizard.setup
end