Allow anonymous blocks without an owner
This commit is contained in:
parent
1a4096a42a
commit
0bbb435858
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue