summaryrefslogtreecommitdiffstats
path: root/vendor/plugins/awesome_nested_set/rails/init.rb
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/awesome_nested_set/rails/init.rb')
-rw-r--r--vendor/plugins/awesome_nested_set/rails/init.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/plugins/awesome_nested_set/rails/init.rb b/vendor/plugins/awesome_nested_set/rails/init.rb
new file mode 100644
index 000000000..e0a4e8b06
--- /dev/null
+++ b/vendor/plugins/awesome_nested_set/rails/init.rb
@@ -0,0 +1,13 @@
+require 'awesome_nested_set/compatability'
+require 'awesome_nested_set'
+
+ActiveRecord::Base.class_eval do
+ include CollectiveIdea::Acts::NestedSet
+end
+
+if defined?(ActionView)
+ require 'awesome_nested_set/helper'
+ ActionView::Base.class_eval do
+ include CollectiveIdea::Acts::NestedSet::Helper
+ end
+end \ No newline at end of file