fix error

This commit is contained in:
chiu 2021-01-19 10:53:42 +08:00
parent 41e54c2f4d
commit 910f6edd9b
1 changed files with 13 additions and 12 deletions

View File

@ -6,6 +6,7 @@ module Archive
require "#{ENV['PWD']}/app/models/category"
require "#{ENV['PWD']}/app/models/module_app"
OrbitApp.registration "Archive", :type => "ModuleApp" do
categories_temp = ModuleApp.where(:key => "archive").first.categories
categories_temp.each do |category|
@ -18,7 +19,7 @@ module Archive
end
end
end
OrbitApp.registration "Archive", :type => "ModuleApp" do
module_label "archive.archive"
base_url File.expand_path File.dirname(__FILE__)
widget_methods ["widget","group_by_category"]