Fix bug for old kernel version.

This commit is contained in:
BoHung Chiu 2021-07-22 16:51:02 +08:00
parent 89760f23e5
commit f12010f1d8
1 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,8 @@
require "yaml"
module PersonalPluginGenerator
class Engine < ::Rails::Engine
begin
initializer "personal_plugin_generator" do
initializer "personal_plugin_generator" do
begin
OrbitApp.registration "PersonalPluginGenerator", :type => "OrbitMemberModule" do
base_url File.expand_path File.dirname(__FILE__)
categorizable
@ -19,9 +19,7 @@ module PersonalPluginGenerator
:available_for => 'users'
end
end
end
rescue
initializer "personal_plugin_generator" do
rescue
OrbitApp.registration "PersonalPluginGenerator", :type => "ModuleApp" do
base_url File.expand_path File.dirname(__FILE__)
categorizable