cama_contact_form 0.0.15 → 0.0.16
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6e8157bbb801cf9fd37d033612446eec712f644
|
4
|
+
data.tar.gz: 1800df1e39224a2d8cde8a9227970be5ada99dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d46319f1516d846abf5321cd0bb55c396a146fadbe983072fcede8b79b4ec3a0e9858f383ae3bfe7985b2e2a35501cef4c96c8f1eabe9160953861043fb14970
|
7
|
+
data.tar.gz: f26baa38a14fb33017825e2e38e98b89a11b04594d01ebc63efc9034945aa1ee6d4481bd2d8b003daf16edeb04a18f98db4bd0c697cdcd7c76e207e306c52fb9
|
@@ -6,7 +6,7 @@ module Plugins::CamaContactForm::ContactFormControllerConcern
|
|
6
6
|
if f[:field_type] == 'file'
|
7
7
|
res = cama_tmp_upload(fields[f[:cid].to_sym], {maximum: 5.megabytes, path: Rails.public_path.join("contact_form", current_site.id.to_s)})
|
8
8
|
if res[:error].present?
|
9
|
-
errors << res[:error]
|
9
|
+
errors << res[:error].to_s.translate
|
10
10
|
else
|
11
11
|
attachments << res[:file_path]
|
12
12
|
fields[f[:cid].to_sym] = res[:file_path].sub(Rails.public_path.to_s, cama_root_url)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cama_contact_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen Peredo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|