Skip to content

Instantly share code, notes, and snippets.

@qhoxie
Created March 3, 2009 20:15
Show Gist options
  • Save qhoxie/73501 to your computer and use it in GitHub Desktop.
Save qhoxie/73501 to your computer and use it in GitHub Desktop.
define_builder(Page) do |klass, overrides|
klass.new(:page_title => "foo.com", :page_id => 123)
end
define_builder(Summary) do |klass, overrides|
klass.new(:page_id => new_page.page_id, :user => new_user, :summary => "foobar")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment