fix background worker bug

This commit is contained in:
zmagod 2017-07-26 13:31:36 +02:00
parent a423315800
commit c34e4a0814
2 changed files with 3 additions and 3 deletions

View file

@ -472,7 +472,7 @@ class Asset < ApplicationRecord
if errors.size > 1
temp_errors = errors[:file]
errors.clear
errors.set(:file, temp_errors)
errors.add(:file, temp_errors)
end
end

View file

@ -4,10 +4,10 @@ Rails.application.configure do
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
config.cache_classes = true
# Do not eager load code on boot.
config.eager_load = false
config.eager_load = true
# Show full error reports and disable caching.
config.consider_all_requests_local = true