Skip to content

Instantly share code, notes, and snippets.

@julik
Created August 30, 2009 14:53
Show Gist options
  • Save julik/177997 to your computer and use it in GitHub Desktop.
Save julik/177997 to your computer and use it in GitHub Desktop.
# Requires "source_tc_frames" and "tape_fps" int columns
class Clip < ActiveRecord::Base
composed_of :start_tc, :class_name => 'Timecode',
:mapping => [%w(source_tc_frames total), %w(tape_fps fps)]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment