lib/avo/app.rb in avo-1.3.0.pre.1 vs lib/avo/app.rb in avo-1.3.0

- old
+ new

@@ -24,15 +24,19 @@ def init(request:, context:) self.request = request self.context = context + self.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license + # Set the current host for ActiveStorage - ActiveStorage::Current.host = request.base_url + begin + ActiveStorage::Current.host = request.base_url + rescue => exception + Rails.logger.debug "[Avo] Failed to set ActiveStorage::Current.host, #{exception.inspect}" + end init_resources - - self.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license end def cache_store app[:cache_store] end