Created
November 4, 2011 07:00
-
-
Save vivekprahlad/1338820 to your computer and use it in GitHub Desktop.
Tenant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tenant < Neo4j::Rails::Model | |
property :name | |
ref_node { Neo4j.default_ref_node } | |
after_create :create_default_data | |
def create_default_data | |
Neo4j.threadlocal_ref_node = self | |
load("#{Rails.root}/db/tenant_default_data.rb") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment