Skip to content

Instantly share code, notes, and snippets.

@XORwell
Created October 13, 2013 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XORwell/6966618 to your computer and use it in GitHub Desktop.
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
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