Compare commits

..

1 Commits

Author SHA1 Message Date
junyi b7c1947520 defer include to after_initialize for Rails 7 2026-07-23 10:57:28 +00:00
2 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@ class Patent
include Mongoid::Timestamps
include OrbitModel::Status
include Slug
include Admin::PersonalPatentsHelper
ActiveSupport.on_load(:after_initialize) { Patent.include Admin::PersonalPatentsHelper }
has_and_belongs_to_many :patent_types
has_and_belongs_to_many :patent_author_types
belongs_to :member_profile

View File

@ -12,8 +12,6 @@ module PersonalPatent
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