promethee 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/promethee_controller.rb +2 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bb39cdccf78e1bfc3dbf89569ef1bc0bc23c17c4deecb948de0239412c33213
|
4
|
+
data.tar.gz: 62328148ed43a02361b7389b0b38e33c14f32283b80682c7ac315483e8efe172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 134e927dd369c0e65cbffdd8997ac4306a16e6d6bab1957eba24b2f22b8e9f23be17f8df871435fc6b7d459156dedc60c79a1f6883c3ad286755c6beab1750f3
|
7
|
+
data.tar.gz: 9d56871ec6891dc456a6074309f6bd8adacc6f3cc106755ed451ce1be177f2e2f23ad9c0c3ec9f1dd55b015a486f31713aad801145e402358148d12975e3af04
|
@@ -11,7 +11,8 @@ class PrometheeController < ApplicationController
|
|
11
11
|
io = params[:file].to_io
|
12
12
|
filename = params[:file].original_filename
|
13
13
|
content_type = params[:file].content_type
|
14
|
-
|
14
|
+
blob_create_method = ActiveStorage::Blob.respond_to?(:create_and_upload!) ? :create_and_upload! : :create_after_upload!
|
15
|
+
blob = ActiveStorage::Blob.public_send(blob_create_method, io: io, filename: filename, content_type: content_type)
|
15
16
|
render json: { id: blob.signed_id, name: filename }
|
16
17
|
end
|
17
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promethee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sébastien Gaya
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2024-10-
|
17
|
+
date: 2024-10-21 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
498
498
|
- !ruby/object:Gem::Version
|
499
499
|
version: '0'
|
500
500
|
requirements: []
|
501
|
-
rubygems_version: 3.5.
|
501
|
+
rubygems_version: 3.5.22
|
502
502
|
signing_key:
|
503
503
|
specification_version: 4
|
504
504
|
summary: Bring fire to your page
|