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