X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9f64b0848f01fb849849380ff32756228a35eca6..62b6d159672ad29344c7b7074a37d23b16dbb5d9:/app/models/relation_member.rb?ds=sidebyside diff --git a/app/models/relation_member.rb b/app/models/relation_member.rb index 1cb6d7131..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 if !self.member_type.nil? + self[:member_class] = self.member_type.capitalize unless self.member_type.nil? end def before_save