otwa-aggie/app/models/offer.rb
2026-08-13 00:44:25 -04: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