Fix bug.
This commit is contained in:
parent
b4d88412ca
commit
f3fed596ee
|
@ -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,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
|
||||
|
|
Loading…
Reference in New Issue