lib/fume.rb in fume-0.7.2 vs lib/fume.rb in fume-0.8.0a
- old
+ new
@@ -1,19 +1,24 @@
require "active_support"
-
-# rails
require File.expand_path("../fume/railtie", __FILE__)
-module Fume
- VERSION = File.read(File.expand_path("../../VERSION", __FILE__)).chomp
-end
+# 3rd gems
+require "rails-i18n"
+
module Fume
extend ActiveSupport::Autoload
autoload :Authlogic
autoload :RailsExt
autoload :Cancan
autoload :SimpleNav
autoload :AppSettingLoader
autoload :RenderCache
+
+ VERSION = File.read(File.expand_path("../../VERSION", __FILE__)).chomp
+
+ def self.load_tasks
+ Dir[File.expand_path("../tasks/*.rake", __FILE__)].each { |ext| load ext }
+ end
+
end