Skip to content

Instantly share code, notes, and snippets.

@tjackiw
Created December 18, 2012 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjackiw/4332843 to your computer and use it in GitHub Desktop.
Save tjackiw/4332843 to your computer and use it in GitHub Desktop.
Using a Graph Database with Ruby. Part II: Integration
class User < ActiveRecord::Base
include Neoid::Node
attr_accessible :name, :age
has_many :friends, class_name: Friendship
neoidable do |c|
c.field :name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment