Skip to content

Instantly share code, notes, and snippets.

@paul
Forked from adelcambre/gist:92958
Created April 10, 2009 05:35
Show Gist options
  • Save paul/92959 to your computer and use it in GitHub Desktop.
Save paul/92959 to your computer and use it in GitHub Desktop.
class Instance
include DataMapper::Resource
class Adapter < AbstractAdapter
# define CRUD
end
@adapter = Adapter.new(:connection => foo)
repository DM.setup(@adapter)
property :id
# etc, etc
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment