mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-23 00:03:02 +01:00
8 lines
216 B
Ruby
8 lines
216 B
Ruby
class AnonymousBlock < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :question, optional: true
|
|
|
|
def self.get_identifier(ip)
|
|
Digest::SHA2.new(512).hexdigest(Rails.application.secret_key_base + ip)
|
|
end
|
|
end
|