mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
14 lines
229 B
Ruby
14 lines
229 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AnswerPolicy
|
|
attr_reader :user, :answer
|
|
|
|
def initialize(user, answer)
|
|
@user = user
|
|
@answer = answer
|
|
end
|
|
|
|
def pin? = answer.user == user
|
|
|
|
def unpin? = answer.user == user
|
|
end
|