Remove deprecation warnings due to update of rails

* `config.serve_static_assets` has been renamed to `config.serve_static_files`
  and former will be removed in rails 5
* propagate errors raised within `after_rollback`/`after_commit` callbacks.
  Read more at: http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#error-handling-in-transaction-callbacks
This commit is contained in:
Aditya Prakash 2016-02-12 15:35:33 +05:30
parent ed0f55c45f
commit cac3f817ef
3 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,7 @@ Osem::Application.configure do
config.cache_classes = true
# 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'
# Do not eager load code on boot.