Skip to content
Browse files

Add a constant for presets and general cleanup

  • Loading branch information...
1 parent a1a62bf commit 2b15de58c93b1d4b16f8b69ecb17a8f5a01aa289 @chao-mu committed Feb 25, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 config/setup.rb
View
12 config/setup.rb
@@ -1,6 +1,12 @@
PROJECT_BASE_DIR = File.join(File.dirname(__FILE__), '..')
-MODULE_DIR = File.join(PROJECT_BASE_DIR, 'modules')
-LIB_DIR = File.join(PROJECT_BASE_DIR, 'lib')
-CONFIG_DIR = File.join(PROJECT_BASE_DIR, 'config')
+
+def join_with_base(path)
+ File.join(PROJECT_BASE_DIR, path)
+end
+
+MODULE_DIR = join_with_base('modules')
+LIB_DIR = join_with_base('lib')
+CONFIG_DIR = join_with_base('config')
+PRESETS_DIR = join_with_base('presets')
$:.unshift(LIB_DIR)

0 comments on commit 2b15de5

Please sign in to comment.
Something went wrong with that request. Please try again.