# specifying the path explictly to aviod any load path madness def require_from_plugin_dir(path) require File.dirname(__FILE__)+'/lib/'+path end require_from_plugin_dir 'dcss/lib/dcss' if File.exist?("#{RAILS_ROOT}/lib/mephisto_init.rb") require_from_plugin_dir 'mephisto/mephisto' else require_from_plugin_dir 'rails/template_handler' require_from_plugin_dir 'rails/dcss_controller' require_from_plugin_dir 'rails/rails_routes' end