OSDN Git Service

t#:
[pettanr/pettanr.git] / app / controllers / system_controller.rb
index 778c9c9..ed74a00 100644 (file)
@@ -12,6 +12,14 @@ class SystemController < ApplicationController
   def import
   end
   
+  def reload_manifest
+    Pettanr::Application.manifest = Pettanr::Manifest.new JSON.parse(open(Rails.root + 'public/manifest.json').read)
+    Pettanr::Application.manifest.init
+    respond_to do |format|
+      format.html { redirect_to({:action => :index}) }
+    end
+  end
+  
   def browse
   end