Created
June 2, 2014 00:10
-
-
Save alvarosanchez/473400dc51f628d9b5e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.odobo.gr8conf.Category | |
import com.odobo.gr8conf.Game | |
class BootStrap { | |
def init = { servletContext -> | |
def slot = new Category(name: 'Slot').save() | |
def instantWin = new Category(name: 'Instant Win').save() | |
def card = new Category(name: 'Card').save() | |
def cascade = new Category(name: 'Cascade').save() | |
def table = new Category(name: 'Table').save() | |
def castleBuilder = new Game(name: 'Castle Builder').addToCategories(slot).save() | |
def amazingCircus = new Game(name: 'The Amazing Circus').addToCategories(instantWin).save() | |
def pokerDrop = new Game(name: 'Poker Drop Riches').addToCategories(card).addToCategories(cascade).save() | |
def petsPayDay = new Game(name: "Pet's Pay Day").addToCategories(slot).save() | |
def grandBlackjack = new Game(name: 'Grand Blackjack').addToCategories(card).addToCategories(table).save() | |
} | |
def destroy = { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment