This file contains hidden or 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
| module Potluck | |
| module EventCollapser | |
| extend self | |
| def for_display(unsorted_events) | |
| latest_events = merge_sort(unsorted_events, :limit => Event::MAX_EVENTS) | |
| collapse(latest_events) | |
| end | |
| def merge_sort(unsorted_events, options) |
This file contains hidden or 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
| module UserMods | |
| module Tutorials | |
| TUTORIALS = { | |
| # define the flows, and an array of symbols for the steps of each flow here | |
| :intro_flow => [ | |
| :welcome, | |
| :buy_pet, | |
| :pet_chore | |
| ] |