require 'awesome_nested_set' require 'globalize3' module Banyan ROOT = File.expand_path(File.dirname(__FILE__)) autoload :Categorizable, "#{ROOT}/banyan/categorizable" autoload :Categorization, "#{ROOT}/banyan/categorization" autoload :Category, "#{ROOT}/banyan/category" autoload :CategoryGroup, "#{ROOT}/banyan/category_group" require "#{ROOT}/banyan/railtie" if defined?(Rails) end ActiveRecord::Base.class_eval { include Banyan::Categorizable }