mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
fix background worker bug
This commit is contained in:
parent
a423315800
commit
c34e4a0814
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue