Skip to content

Instantly share code, notes, and snippets.

@entp
Created November 20, 2008 23:20
Show Gist options
  • Save entp/27265 to your computer and use it in GitHub Desktop.
Save entp/27265 to your computer and use it in GitHub Desktop.
# fuck you for judging me! LOL
class << ActiveRecord::Base
def second(options = {})
first(options.update(:offset => 1))
end
def third(options = {})
first(options.update(:offset => 2))
end
end
describe "associations" do
before :all do
transaction do
@site = Site.make
@cat1 = Category.first
@cat2 = Category.second
@cat3 = Category.third
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment