X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c24c2e481cc6d27e76274ed4e32668a4690a7788..619ac4c5b2fbdbc610007376ee11e3921e475520:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 47ff9ff08..46a8c282b 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -30,7 +30,7 @@ class UserBlock < ApplicationRecord belongs_to :user, :class_name => "User" belongs_to :creator, :class_name => "User" - belongs_to :revoker, :class_name => "User" + belongs_to :revoker, :class_name => "User", :optional => true PERIODS = Settings.user_block_periods