init.rb in pboling-subdomain-fu-0.5.2 vs init.rb in pboling-subdomain-fu-0.5.3
- old
+ new
@@ -1,5 +1,10 @@
-require "rails/init"
+#Allow whatever Ruby Package tool is being used ot manage load paths. gem auto adds the gem's lib dir to load path.
+require 'subdomain-fu' unless defined?(SubdomainFu)
+
+ActionController::Base.send :include, SubdomainFu::Controller
+
+RAILS_DEFAULT_LOGGER.info("** SubdomainFu: initialized properly")