Skip to content

Commit

Permalink
chore: remove ActiveStorage dependency (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Apr 7, 2021
1 parent 00cb89c commit a11aa82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/avo/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def init(request:, context:)
self.context = context

# 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

Expand Down

0 comments on commit a11aa82

Please sign in to comment.