Skip to content

Commit a11aa82

Browse files
authored
chore: remove ActiveStorage dependency (#333)
1 parent 00cb89c commit a11aa82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/avo/app.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def init(request:, context:)
2727
self.context = context
2828

2929
# Set the current host for ActiveStorage
30-
ActiveStorage::Current.host = request.base_url
30+
begin
31+
ActiveStorage::Current.host = request.base_url
32+
rescue => exception
33+
Rails.logger.debug "[Avo] Failed to set ActiveStorage::Current.host, #{exception.inspect}"
34+
end
3135

3236
init_resources
3337

0 commit comments

Comments
 (0)