Skip to content

Instantly share code, notes, and snippets.

@OSP123
Created November 1, 2012 00:45
Show Gist options
  • Save OSP123/3990923 to your computer and use it in GitHub Desktop.
Save OSP123/3990923 to your computer and use it in GitHub Desktop.
# Week 3
- RankedPrize:
identifier: ranked_prize_3
attributes:
# questions - copy?
name: Football Tickets or a 49ers Prize Pack
description: Two (2) ticket to the San Francisco 49ers vs. Miami Dolphins football game, scheduled to take place on Sunday, December 9, 2012 at Candlestick Park, or One (1) Authentic 49ers Fan Prize Pack, including cheer cards and either a tshirt, scarf, sunglasses or a water bottle (each a Prize Pack)
# questions - image asset?
TYPE___PAPERCLIP_OBJECT___icon: <%= @assets_directory %>/csn_49ers/placeholder.jpg
signup_stage: 1
- HelperMethods:
- remove_all_prize_rankings:
argument_hash:
main_prize_identifier: ranked_prize_3
- add_prize_rankings:
argument_hash:
main_prize_identifier: ranked_prize_3
sub_prizes:
- tickets_dec_9:
number: 1
- 49ers_prize_pack:
number: 9
- ModelObjects:
# Update the signup stage to try stage 2 validations now that prizes added to ranked prize
- RankedPrize:
identifier: ranked_prize_3
attributes:
signup_stage: 2
- Sweep:
identifier: weekly_sweep_3
attributes:
<<: *WEEKLY_PROMOTION_ATTRIBUTES
# questions - copy?
name: Authentic Fan Promotion 3
TYPE___ID_FROM_IDENTIFIER___prize_id: ranked_prize_3
TYPE___PT_DATETIME___start_time: 2012/11/21 00:00:00
TYPE___PT_DATETIME___end_time: 2012/11/27 23:59:59
# Poll Question
# - PollSurvey:
# identifier: poll_3
# attributes:
# name: Poll 3
# TYPE___ID_FROM_IDENTIFIER___promotion_id: weekly_sweep_3
# active: true
# - Question::RadioButton:
# identifier: question_poll_3
# attributes:
# TYPE___ID_FROM_IDENTIFIER___survey_id: poll_3
# required: true
# # questions - these are being changed
# question: placeholder
# - QuestionOption:
# identifier: question_poll_3_option_1
# attributes:
# TYPE___ID_FROM_IDENTIFIER___question_id: question_poll_3
# is_default: true
# # questions - these are being changed
# value: placeholder
# - QuestionOption:
# identifier: question_poll_3_option_2
# attributes:
# TYPE___ID_FROM_IDENTIFIER___question_id: question_poll_3
# is_default: false
# # questions - these are being changed
# value: palceholder
# Prediciton Question
# - PredictionSurvey:
# identifier: prediction_3
# attributes:
# name: Question 3
# TYPE___ID_FROM_IDENTIFIER___promotion_id: weekly_sweep_3
# active: true
# - Question::RadioButton:
# identifier: question_prediction_3
# attributes:
# TYPE___ID_FROM_IDENTIFIER___survey_id: prediction_3
# required: true
# # questions - these are being changed
# question: placeholder
# - QuestionOption:
# identifier: question_prediction_3_option_1
# attributes:
# TYPE___ID_FROM_IDENTIFIER___question_id: question_prediction_3
# is_default: true
# # questions - these are being changed
# value: placeholder
# - QuestionOption:
# identifier: question_prediction_3_option_2
# attributes:
# TYPE___ID_FROM_IDENTIFIER___question_id: question_prediction_3
# is_default: false
# # questions - these are being changed
# value: placeholder
# Redeemable Code
- RedeemableCode:
identifier: code_3
attributes:
TYPE___ID_FROM_IDENTIFIER___promotion_id: weekly_sweep_3
code: TITLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment