defer include to after_initialize for Rails 7

This commit is contained in:
junyi 2026-07-23 10:57:28 +00:00
parent 4d10d9c56b
commit b7c1947520
1 changed files with 1 additions and 1 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