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: ad12606c6fbe98c89eb291b636112e950efd6173
4
- data.tar.gz: 26d903baf784af50234313c6f1122dc942ad3ff9
3
+ metadata.gz: a6e8157bbb801cf9fd37d033612446eec712f644
4
+ data.tar.gz: 1800df1e39224a2d8cde8a9227970be5ada99dac
5
5
  SHA512:
6
- metadata.gz: 198a2f08d59a5511de52177cbda439bb6587e6160dddfba9c97174e46fc137c38fd5fdf69197cd9ed203633f9916a3715f96b39fa231e657a0344bfc70194a06
7
- data.tar.gz: 1a584138d9ad92d8addbc20df1263eb8289ec6071cdd9a0b42921cb3730efce9563964fe5d415d33605f43a8a18645f861cf7b2122c6736b5f65150198a55158
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)
@@ -1,3 +1,3 @@
1
1
  module CamaContactForm
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
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.15
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-25 00:00:00.000000000 Z
11
+ date: 2016-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails