refinerycms 0.9.1.1 → 0.9.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,4 @@
1
- # Get library path without '..' directories.
2
- dir_parts = (File.join File.dirname(__FILE__), '..').split(File::SEPARATOR)
3
- dir_parts = dir_parts[0..(dir_parts.length-3)] until dir_parts[dir_parts.length-1] != ".."
4
- REFINERY_ROOT = File.join dir_parts
1
+ REFINERY_ROOT = File.expand_path(File.dirname(__FILE__) << "/..")
5
2
 
6
3
  unless REFINERY_ROOT == RAILS_ROOT # e.g. only if we're in a gem.
7
4
  $LOAD_PATH.unshift "#{REFINERY_ROOT}/vendor/plugins"