lib/jets/application.rb in jets-0.9.1 vs lib/jets/application.rb in jets-0.9.2
- old
+ new
@@ -19,25 +19,32 @@
def load_inflections
Jets::Inflections.load!
end
+ # Default config
def config
config = ActiveSupport::OrderedOptions.new
config.prewarm = ActiveSupport::OrderedOptions.new
config.prewarm.enable = true
config.prewarm.rate = '30 minutes'
config.prewarm.concurrency = 2
- config.prewarm.public_ratio = 10
+ config.prewarm.public_ratio = 3
config.lambdagems = ActiveSupport::OrderedOptions.new
config.lambdagems.sources = [
'https://gems.lambdagems.com'
]
config.inflections = ActiveSupport::OrderedOptions.new
config.inflections.irregular = {}
+
+ config.assets = ActiveSupport::OrderedOptions.new
+ config.assets.folders = %w[packs images assets]
+ config.assets.base_url = nil # IE: https://cloudfront.com/my/base/path
+ config.assets.max_age = 3600
+ config.assets.cache_control = nil # IE: public, max-age=3600 , max_age is a shorter way to set cache_control.
config
end
memoize :config