X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e79fd0763854f8cf41aefd7364c6bdf476280811..2e41c354794b183f24e5c5745f8e408ad9a69bc8:/app/models/relation_member.rb?ds=sidebyside 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