obsolete.ChilliProject/vendor/plugins/awesome_nested_set/rails/init.rb

14 lines
329 B
Ruby

#-- encoding: UTF-8
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