otwarchive-symphonyarchive/app/models/offer.rb

8 lines
167 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
class Offer < Prompt
belongs_to :challenge_signup, touch: true, inverse_of: :offers
def prompt_restriction
collection&.challenge&.offer_restriction
end
end