deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 2/9] CIMI: Fix 'views' folder location
Date Fri, 01 Mar 2013 13:32:22 GMT
From: Michal Fojtik <mfojtik@redhat.com>

In CIMI we don't have views except the error ones.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/cimi/collections/base.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/lib/cimi/collections/base.rb b/server/lib/cimi/collections/base.rb
index 3c319d6..0d1d0ee 100644
--- a/server/lib/cimi/collections/base.rb
+++ b/server/lib/cimi/collections/base.rb
@@ -44,8 +44,8 @@ module CIMI::Collections
     set :root_path, config.root_url
     set :version, config.version
     set :root, File.join(File.dirname(__FILE__), '..', '..', '..')
-    set :views, root + '/views/cimi'
-    set :public_folder, root + '/public'
+    set :views, File.join(root, 'views')
+    set :public_folder, File.join(root, 'public')
     set :documentation_class, CIMI
     set :haml, :format => :xhtml
 
-- 
1.8.1.2


Mime
View raw message