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
|
end
|
||||||
|
|
||||||
success
|
success
|
||||||
rescue ActiveRecord::RecordNotUnique
|
rescue ActiveRecord::RecordNotUnique, ActiveRecord::ReadOnlyError
|
||||||
false
|
false
|
||||||
ensure
|
ensure
|
||||||
if Rails.env.development? && old_logger
|
if Rails.env.development? && old_logger
|
||||||
|
|
Loading…
Reference in New Issue