diff --git a/app/controllers/admin/personal_plugin_fields_controller.rb b/app/controllers/admin/personal_plugin_fields_controller.rb index 79c1849..694a4c6 100644 --- a/app/controllers/admin/personal_plugin_fields_controller.rb +++ b/app/controllers/admin/personal_plugin_fields_controller.rb @@ -128,6 +128,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController def generate_plugin template_dir_path = File.expand_path("../../../../template_generator/", __FILE__) + "/" cp_template_dir_path = "#{Rails.root}/tmp/#{@personal_plugin_field.module_name}/" + Bundler.with_clean_env { system("cd #{File.dirname(template_dir_path)} && git checkout -- template_generator") } FileUtils.rm_rf(cp_template_dir_path) FileUtils.cp_r(template_dir_path,cp_template_dir_path) dirs = Dir.glob("#{cp_template_dir_path}*/") diff --git a/template_generator/MIT-LICENSE b/template_generator/MIT-LICENSE index 1e4beb8..f017636 100644 --- a/template_generator/MIT-LICENSE +++ b/template_generator/MIT-LICENSE @@ -1,4 +1,4 @@ -Copyright 2015 YOURNAME +Copyright 2022 YOURNAME Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the