diff --git a/app/models/anonymous_block.rb b/app/models/anonymous_block.rb index f5213979..accaa7e7 100644 --- a/app/models/anonymous_block.rb +++ b/app/models/anonymous_block.rb @@ -3,7 +3,7 @@ require "digest" class AnonymousBlock < ApplicationRecord - belongs_to :user + belongs_to :user, optional: true belongs_to :question, optional: true def self.get_identifier(ip)