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
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