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
#! /usr/bin/env ruby | |
require 'time' | |
def usage | |
puts "USAGE: ./record-timelapse every 10 displays 1,2" | |
end | |
if ARGV[0] != "every" || ARGV[2] != "displays" | |
usage |
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
module Sequel | |
module Plugins | |
# This plugin adds support for eager loading associations _after_ a record, or | |
# multiple records, have been fetched from the database. It is useful for ensuring | |
# nested associations are efficiently loaded when it is difficult to modify the | |
# dataset used to initially fetch the data. | |
# | |
# Example usage: | |
# | |
# artist = Artist.first |