This commit is contained in:
bohung committed 2022-08-23 14:03:20 +08:00
1 parent b4d88412ca
commit f3fed596ee
2 files changed
+2 -1

No files matched your search

@@ -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}*/")
+1 -1
View File
@@ -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