2011-10-29 16:19:11 +04:00
|
|
|
#-- encoding: UTF-8
|
2009-01-24 14:31:15 +03:00
|
|
|
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
|