Permalink
Browse files

-- stalled on AR --

  • Loading branch information...
1 parent 4114856 commit 17c54520f037feb22419a0932db4d89d887e3a74 @clr committed Jul 17, 2009
Showing with 16 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +14 −0 lib/nested_tree_comparisons.rb
  3. +1 −0 vendor/acts_as_nested_set
View
@@ -1,4 +1,5 @@
*.sw?
+**~
.DS_Store
coverage
rdoc
@@ -0,0 +1,14 @@
+require 'rubygems'
+require 'activerecord'
+require 'vendor/acts_as_nested_set/lib/active_record/acts/nested_set'
+require 'vendor/acts_as_nested_set/init.rb'
+
+ActiveRecord::Base.establish_connection(
+ :adapter => "postgresql",
+ :username => "rails",
+ :database => "nested_tree_comparison"
+ )
+
+class Node < ActiveRecord::Base
+ acts_as_nested_set( :left_column => 'left_id', :right_column => 'right_id' )
+end
Submodule acts_as_nested_set added at b0528d

0 comments on commit 17c5452

Please sign in to comment.