lib/app_slice/rails.rb in bradgessler-app-slice-0.2.0 vs lib/app_slice/rails.rb in bradgessler-app-slice-0.2.1

- old
+ new

@@ -13,10 +13,14 @@ end @initialized = true end def root - File.join(RAILS_ROOT, 'apps', AppSlice.app) + if AppSlice.exists? + File.join(RAILS_ROOT, 'apps', AppSlice.app) + else + RAILS_ROOT + end end def environment_path File.join(config_path, 'environments', "#{RAILS_ENV}.rb") end