initialize_on_precompile to false for asset compile

Albert Sun 11 年之前
父節點
當前提交
a521695d6c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      config/application.rb

+ 2 - 1
config/application.rb

@@ -52,7 +52,8 @@ module Huginn
52 52
     # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
53 53
     # parameters by using an attr_accessible or attr_protected declaration.
54 54
     config.active_record.whitelist_attributes = true
55
-
55
+    config.assets.initialize_on_precompile = false
56
+    
56 57
     # Enable the asset pipeline
57 58
     config.assets.enabled = true
58 59