otwarchive-symphonyarchive/app/models/offer.rb
2026-03-11 22:22:11 +00:00

7 lines
167 B
Ruby

class Offer < Prompt
belongs_to :challenge_signup, touch: true, inverse_of: :offers
def prompt_restriction
collection&.challenge&.offer_restriction
end
end