Allow anonymous blocks without an owner

This commit is contained in:
Karina Kwiatek 2022-08-12 11:53:42 +02:00
parent 1a4096a42a
commit 0bbb435858
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
require "digest" require "digest"
class AnonymousBlock < ApplicationRecord class AnonymousBlock < ApplicationRecord
belongs_to :user belongs_to :user, optional: true
belongs_to :question, optional: true belongs_to :question, optional: true
def self.get_identifier(ip) def self.get_identifier(ip)