Sha256: b6eca30f3fcf7447a2dfb2406e0eb4d58f76899da6cc35a05836f9066d956bc7
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
require 'umlaut/routes' # not sure why including openurl gem doesn't do the require, but it # seems to need this. require 'openurl' module Umlaut class Engine < Rails::Engine engine_name "umlaut" # we store some things in non-standard subdirs, add em to path. # # We EAGER load em all to try and handle threading issues. config.autoload_paths << File.join(self.root, "lib", "referent_filters") config.eager_load_paths << File.join(self.root, "lib", "referent_filters") config.autoload_paths << File.join(self.root, "lib", "service_adaptors") config.eager_load_paths << File.join(self.root, "lib", "service_adaptors") # Ane make 'lib' dir auto-loaded, because we have legacy Rails2 code # that assumes it. config.autoload_paths << File.join(self.root, "lib") # Sadly including eager_load_paths here makes weird things happen, apparently # I don't entirely understand what's going on. #config.eager_load_paths << File.join(self.root, "lib") # This makes our rake tasks visible. rake_tasks do Dir.chdir(File.expand_path(File.join(File.dirname(__FILE__), '..'))) do Dir.glob(File.join('lib', 'tasks', '*.rake')).each do |railtie| load railtie end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
umlaut-3.0.0alpha2 | lib/umlaut.rb |
umlaut-3.0.0alpha1 | lib/umlaut.rb |