otwa-aggie/app/models/offer.rb

8 lines
167 B
Ruby
Raw Permalink Normal View History

2026-08-13 04:44:25 +00:00
class Offer < Prompt
belongs_to :challenge_signup, touch: true, inverse_of: :offers
def prompt_restriction
collection&.challenge&.offer_restriction
end
end