lib/fume.rb in fume-0.5.3 vs lib/fume.rb in fume-0.6.0
- old
+ new
@@ -1,18 +1,17 @@
-require File.expand_path("../../depends.rb", __FILE__)
-GemLoader.require(:runtime)
+require "active_support"
-require 'fume/authlogic'
-require 'fume/searchlogic'
-require 'fume/simple_theme'
-require 'fume/rails_ext'
-require 'fume/formtastic'
-require 'fume/smart_logger'
-require 'fume/logger_support'
-require 'fume/daemon'
-require 'fume/cancan'
+# rails
+require File.expand_path("../fume/railtie", __FILE__)
-# module Fume
-# def self.root
-# @root ||= Pathname.new(File.dirname(__FILE__)).join("..")
-# end
-# end
+module Fume
+ VERSION = File.read(File.expand_path("../../VERSION", __FILE__)).chomp
+end
+
+module Fume
+ extend ActiveSupport::Autoload
+
+ autoload :Authlogic
+ autoload :RailsExt
+ autoload :Cancan
+ autoload :SimpleTheme
+end