mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 13:28:53 +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
|
if errors.size > 1
|
||||||
temp_errors = errors[:file]
|
temp_errors = errors[:file]
|
||||||
errors.clear
|
errors.clear
|
||||||
errors.set(:file, temp_errors)
|
errors.add(:file, temp_errors)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ Rails.application.configure do
|
||||||
# In the development environment your application's code is reloaded on
|
# In the development environment your application's code is reloaded on
|
||||||
# every request. This slows down response time but is perfect for development
|
# 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.
|
# 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.
|
# Do not eager load code on boot.
|
||||||
config.eager_load = false
|
config.eager_load = true
|
||||||
|
|
||||||
# Show full error reports and disable caching.
|
# Show full error reports and disable caching.
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue