Compare commits

..

1 Commits

Author SHA1 Message Date
junyi d4e9816396 defer include to after_initialize for Rails 7 2026-07-23 10:56:18 +00:00
2 changed files with 6 additions and 7 deletions

View File

@ -2,9 +2,9 @@ class Project
include Mongoid::Document
include Mongoid::Timestamps
include OrbitModel::Status
include MemberHelper
ActiveSupport.on_load(:after_initialize) { Project.include MemberHelper }
include Slug
include Admin::PersonalProjectsHelper
ActiveSupport.on_load(:after_initialize) { Project.include Admin::PersonalProjectsHelper }
belongs_to :project_type
belongs_to :member_profile

View File

@ -12,11 +12,10 @@ module PersonalProject
author "RD dep"
intro "I am intro"
update_info 'some update_info'
authorizable
is_personal_plugin true
frontend_enabled
icon_class_no_sidebar "icons-user"
data_count 1..10
frontend_enabled
icon_class_no_sidebar "icons-user"
data_count 1..10
end
end
end