X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e79fd0763854f8cf41aefd7364c6bdf476280811..8348493ccb02fd0bb3f46733d8176b503f9f9883:/app/models/relation_member.rb diff --git a/app/models/relation_member.rb b/app/models/relation_member.rb index 08bb988ee..f3033d1c6 100644 --- a/app/models/relation_member.rb +++ b/app/models/relation_member.rb @@ -10,7 +10,7 @@ class RelationMember < ActiveRecord::Base end def after_initialize - self[:member_class] = self.member_type.capitalize + self[:member_class] = self.member_type.capitalize unless self.member_type.nil? end def before_save