lib/banyan.rb in banyan-1.0.1 vs lib/banyan.rb in banyan-1.1.1
- old
+ new
@@ -6,8 +6,10 @@
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 }