Add support for preloaded custom_fields on Group

This commit is contained in:
Régis Hanol
2017-08-08 15:45:27 +02:00
parent 76a217c4bc
commit d182f0f2d1
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,9 @@ class Group < ActiveRecord::Base
include HasCustomFields
include AnonCacheInvalidator
cattr_accessor :preloaded_custom_field_names
self.preloaded_custom_field_names = Set.new
has_many :category_groups, dependent: :destroy
has_many :group_users, dependent: :destroy
has_many :group_mentions, dependent: :destroy