arkaan 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/campaigns/file.rb +9 -2
- data/lib/arkaan/utils/controller_without_filter.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1421f9b29b1a34819afe826ac72a4599644381c1
|
4
|
+
data.tar.gz: 5835dde200cc11c279637ab10fd2db1fc1f21ff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef6a293b1b11a01c0abcb834de89bc1e4723b87885099ccf6e427d175fa1e894abd7366c72989d6cd350c9a49571cb8ea918a95877123fb0d4b3cbd774f91d81
|
7
|
+
data.tar.gz: 3e793f2fc1170ff3fbc0be21505a11f4a4a5ed4c9647ee59326dc5c998a741eebb8c44c9cf5ffb69165f71407d509eecbd22b913406973b5ee44fb5a524673b4
|
@@ -8,13 +8,20 @@ module Arkaan
|
|
8
8
|
|
9
9
|
# @!attribute [rw] filename
|
10
10
|
# @return [String] the name of the file, corresponding to the AWS name.
|
11
|
-
field :
|
11
|
+
field :name, type: String
|
12
|
+
# @!attribute [rw] size
|
13
|
+
# @return [Integer] the size of the file in bytes.
|
14
|
+
field :size, type: Integer, default: 0
|
15
|
+
# @!attribute [rw] mime_type
|
16
|
+
# @return [String] the MIME type of the file, obtained from the uploaded file.
|
17
|
+
field :mime_type, type: String
|
12
18
|
|
13
19
|
# @!attribute [rw] invitation
|
14
20
|
# @return [Arkaan::Campaigns::Invitation] the link to the user creator of the file and the campaign it's created in.
|
15
21
|
embedded_in :invitation, class_name: 'Arkaan::Campaigns::Invitation', inverse_of: :files
|
16
22
|
|
17
|
-
validates '
|
23
|
+
validates 'name' , presence: {message: 'required'}
|
24
|
+
validates 'mime_type', presence: {message: 'required'}
|
18
25
|
end
|
19
26
|
end
|
20
27
|
end
|