mobile_workflow 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 026fc97366b9da9d1cdd8c27935c9c120a872fc0f666e3e8dec8ebe881e36c8e
|
4
|
+
data.tar.gz: 2963f07f4173b235411a1256a5ab716805edebc78cd82c60603603316a861284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 297c0feb073d5172064eb35168aff8864b7d523e91bc9f0bcbede72ad16c2fb2e4507aea89b52f21fc921dbef299f00b2b9d8765c595f1e1435392bbd84a2693
|
7
|
+
data.tar.gz: 9d3442386b9f5846dca8124f2bdb878302992bb42142b6ac3601abd3fd14d3c556051c261f210faf98bc24e21adf8edb5ff2b16ead759dccfb6fe0878c7b755c
|
@@ -151,11 +151,13 @@ module MobileWorkflow
|
|
151
151
|
def attachment_url(attachment)
|
152
152
|
return nil unless attachment.attached?
|
153
153
|
|
154
|
-
Rails.application.routes.url_helpers.rails_blob_url(attachment, host:
|
154
|
+
Rails.application.routes.url_helpers.rails_blob_url(attachment, host: heroku_attachment_host)
|
155
155
|
end
|
156
156
|
|
157
|
-
def
|
158
|
-
|
157
|
+
def heroku_attachment_host
|
158
|
+
# TODO: MBS - move this to a configuration property
|
159
|
+
app_name = Rails.env.test? ? 'test' : ENV.fetch('HEROKU_APP_NAME')
|
160
|
+
"https://#{app_name}.herokuapp.com"
|
159
161
|
end
|
160
162
|
end
|
161
163
|
end
|