wayground-old /vendor/plugins/topfunky_power_tools/init.rb

Language Ruby Lines 18
MD5 Hash f7c6e7676caabf58fbdefe11f76508ac Estimated Cost $215 (why?)
Repository https://github.com/grantneufeld/wayground-old.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Test::Unit::TestCase.send :include, Topfunky::TestHelper

# Shamelessly looted from http://svn.techno-weenie.net/projects/plugins/gems/init.rb
#
# Adds vendor directories to the load path.
#
# You still need to +require+ the libraries you are using.
standard_dirs = ['rails', 'plugins']
gems          = Dir[File.join(RAILS_ROOT, "vendor/**") ]
if gems.any?
  gems.each do |dir|
    next if standard_dirs.include?(File.basename(dir))
    lib = File.join(dir, 'lib')
    $LOAD_PATH.unshift(lib) if File.directory?(lib)
  end
end
Back to Top