FIX: Don't raise error when adding to cache fails in readonly mode.
This commit is contained in:
parent
aa00a6f077
commit
cebd8da299
|
@ -34,7 +34,7 @@ class StylesheetCache < ActiveRecord::Base
|
|||
end
|
||||
|
||||
success
|
||||
rescue ActiveRecord::RecordNotUnique
|
||||
rescue ActiveRecord::RecordNotUnique, ActiveRecord::ReadOnlyError
|
||||
false
|
||||
ensure
|
||||
if Rails.env.development? && old_logger
|
||||
|
|
Loading…
Reference in New Issue