File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
spec/representers/api/v1/exercises Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def has_attachments(options={})
3333 getter : -> ( *) {
3434 self . images . map do |i |
3535 i . as_json ( only : [ :created_at ] , methods : [ :signed_id ] ) . merge (
36- 'url' => Rails . application . routes . url_helpers . rails_blob_url ( i , {
36+ 'url' => Rails . application . routes . url_helpers . rails_storage_proxy_url ( i , {
3737 host : Rails . application . secrets . attachments_url
3838 } )
3939 )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ module Api::V1::Exercises
9797 including (
9898 'images' => [ a_hash_including (
9999 'url' => a_string_matching (
100- Rails . application . routes . url_helpers . rails_blob_url (
100+ Rails . application . routes . url_helpers . rails_storage_proxy_url (
101101 exercise . images . first , {
102102 host : Rails . application . secrets . attachments_url
103103 } )
You can’t perform that action at this time.
0 commit comments