defer include to after_initialize for Rails 7
This commit is contained in:
parent
b9357fc8a3
commit
d4e9816396
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue