updated rails and gems

This commit is contained in:
Priit Tark 2015-01-08 15:41:13 +02:00
parent 9e824a43f8
commit fe9a60fd47
5 changed files with 161 additions and 117 deletions

View file

@ -30,6 +30,11 @@ module Registry
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
# Active Record used to suppresses errors raised within `after_rollback`/`after_commit` callbacks
# and only printed them to the logs. In the next version, these errors will no longer be suppressed.
# Instead, the errors will propagate normally just like in other Active Record callbacks.
config.active_record.raise_in_transactional_callbacks = true
config.generators do |g|
g.stylesheets false
g.javascripts false

View file

@ -20,7 +20,7 @@ Rails.application.configure do
# config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = false
config.serve_static_files = false
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier

View file

@ -13,7 +13,7 @@ Rails.application.configure do
config.eager_load = false
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'
# Show full error reports and disable caching.