diff options
Diffstat (limited to 'app/models/members/group_member.rb')
-rw-r--r-- | app/models/members/group_member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/members/group_member.rb b/app/models/members/group_member.rb index 2b35f7da7b4..ad1ad1e74fe 100644 --- a/app/models/members/group_member.rb +++ b/app/models/members/group_member.rb @@ -13,7 +13,7 @@ class GroupMember < Member delegate :update_two_factor_requirement, to: :user, allow_nil: true # Make sure group member points only to group as it source - default_value_for :source_type, SOURCE_TYPE + attribute :source_type, default: SOURCE_TYPE validates :source_type, format: { with: SOURCE_TYPE_FORMAT } default_scope { where(source_type: SOURCE_TYPE) } # rubocop:disable Cop/DefaultScope |