OSDN Git Service

add manifest
[pettanr/pettanr.git] / config / application.rb
index 8a2e303..39f4d58 100644 (file)
@@ -87,7 +87,20 @@ config.assets.initialize_on_precompile = false
     def self.elements
       @@elements || {}
     end
+    
+    def self.manifest=(arg)
+      @@manifest = Manifest.new arg
+    end
+    
+    def self.manifest
+      @@manifest
+    end
   end
+  
+  def manifest
+    Application::manifest
+  end
+  
 end
   
 Pettanr::Application.licenses = YAML.load(open(Rails.root + 'config/license.yml').read)
@@ -101,6 +114,8 @@ else
   false
 end
 MagicNumber['profile'] = JSON.parse(open(Rails.root + 'config/profile.json').read).first[1] #strip profile body
+Pettanr::Application.manifest = JSON.parse(open(Rails.root + 'public/manifest.json').read)
+
 y = YAML.load(open(Rails.root + 'config/picture_io.yml').read)
 require y[Rails.env]["adapter"]
 pio = PictureIO.const_get y[Rails.env]["io"]