Fix bug for old kernel version.
This commit is contained in:
parent
89760f23e5
commit
f12010f1d8
|
@ -1,8 +1,8 @@
|
||||||
require "yaml"
|
require "yaml"
|
||||||
module PersonalPluginGenerator
|
module PersonalPluginGenerator
|
||||||
class Engine < ::Rails::Engine
|
class Engine < ::Rails::Engine
|
||||||
begin
|
initializer "personal_plugin_generator" do
|
||||||
initializer "personal_plugin_generator" do
|
begin
|
||||||
OrbitApp.registration "PersonalPluginGenerator", :type => "OrbitMemberModule" do
|
OrbitApp.registration "PersonalPluginGenerator", :type => "OrbitMemberModule" do
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
categorizable
|
categorizable
|
||||||
|
@ -19,9 +19,7 @@ module PersonalPluginGenerator
|
||||||
:available_for => 'users'
|
:available_for => 'users'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
rescue
|
||||||
rescue
|
|
||||||
initializer "personal_plugin_generator" do
|
|
||||||
OrbitApp.registration "PersonalPluginGenerator", :type => "ModuleApp" do
|
OrbitApp.registration "PersonalPluginGenerator", :type => "ModuleApp" do
|
||||||
base_url File.expand_path File.dirname(__FILE__)
|
base_url File.expand_path File.dirname(__FILE__)
|
||||||
categorizable
|
categorizable
|
||||||
|
|
Loading…
Reference in New Issue