OSDN Git Service

add: license publisher
[pettanr/pettanr.git] / app / controllers / system_controller.rb
index ed74a00..be48d47 100644 (file)
@@ -13,16 +13,17 @@ class SystemController < ApplicationController
   end
   
   def reload_manifest
-    Pettanr::Application.manifest = Pettanr::Manifest.new JSON.parse(open(Rails.root + 'public/manifest.json').read)
-    Pettanr::Application.manifest.init
+    Manifest::load JSON.parse(open(Rails.root + 'public/manifest.json').read)
+    Manifest.manifest.init
+    LocalManifest::load JSON.parse(open(Rails.root + 'public/local_manifest.json').read)
+    LocalManifest.manifest.init
+    Manifest.manifest.init_after_load_manifest
+    Manifest.manifest.load_models_manifest
     respond_to do |format|
       format.html { redirect_to({:action => :index}) }
     end
   end
   
-  def browse
-  end
-  
   def auth_token
   end
   
@@ -75,18 +76,4 @@ class SystemController < ApplicationController
     end
   end
   
-  def production_layout
-    MagicNumber['test_layout'] = false
-    respond_to do |format|
-      format.html { render text: 'production', status: 200 }
-    end
-  end
-  
-  def test_layout
-    MagicNumber['test_layout'] = 'test'
-    respond_to do |format|
-      format.html { render text: 'test', status: 200 }
-    end
-  end
-  
 end