Created
October 13, 2013 19:45
-
-
Save XORwell/6966618 to your computer and use it in GitHub Desktop.
# Evolve IceCube Occurrence
# Background: IceCubes ::all_occurrences returns Occurrence Objects
# This patch makes it possible to store IceCube::Schedule#all_occurrences return value into Mongoid field type Array
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
class IceCube::Occurrence | |
def self.evolve(occurrence) | |
occurrence.to_time | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment