Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.

Commit 1b7fbe2

Browse files
author
condef5
committed
Fixed images in heroku
1 parent 0aaaab2 commit 1b7fbe2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ gem 'active_model_serializers'
4848
gem 'rspec-rails'
4949

5050
gem 'dotenv-rails', groups: [:development, :test]
51-
gem 'aws-sdk-s3'
51+
gem 'aws-sdk-s3', require: false

api/app/serializers/club_serializer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def image
77
# rails_blob_path(object.image, only_path: true) if object.image.attached?
88
if self.object.image.attached?
99
object.image.map do |img|
10-
url_for(img)
10+
img.service_url
1111
end
1212
end
1313
end

0 commit comments

Comments
 (0)