Skip to content

Instantly share code, notes, and snippets.

@axsuul
Created February 18, 2012 01:57
Show Gist options
  • Save axsuul/1856856 to your computer and use it in GitHub Desktop.
Save axsuul/1856856 to your computer and use it in GitHub Desktop.
class Vod < ActiveRecord::Base
def self.matchup(matchup)
r1, r2 = matchup.split("v")
where(r1: r1, r2: r2)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment