ecm_contact2 2.0.0 → 2.1.0
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: e2bc6141f875323068c8eedcc9bc8a0337aa9c32
|
4
|
+
data.tar.gz: 86a7d71d1b2e3841b0220a878b8d3a8d60b1e451
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befcdf5b74400f95a4b5dcc996a09ab85b49c899d880aad5835ce1dd6e839ac5a456ee3a49159c79659fc76b2b3ee324688722ff13606cdae136038c069d96b8
|
7
|
+
data.tar.gz: ccc73ed805bbffcfb0286028fdf5db239795a64f1ce10b550552224ca88d3fcc7747ce77aa01e0c4d2b732eb6ae047e9e8bc0d1462b127d06b7437a094564c3a
|
@@ -20,7 +20,8 @@ module Ecm
|
|
20
20
|
subject: proc { I18n.t('ecm.contact.request.subject', application_name: Rails.application.class.to_s.split('::').first) }.call,
|
21
21
|
# :to => I18n.t('ecm.contact.request.recipients'),
|
22
22
|
to: Ecm::Contact::Configuration.recipients[Rails.env],
|
23
|
-
from: %("#{name}" <#{email}>)
|
23
|
+
# from: %("#{name}" <#{email}>)
|
24
|
+
from: Ecm::Contact::Configuration.sender.call(self)
|
24
25
|
}
|
25
26
|
end
|
26
27
|
end
|
data/lib/ecm/contact/version.rb
CHANGED
@@ -74,4 +74,10 @@ Ecm::Contact.configure do |config|
|
|
74
74
|
# default: config.after_create_url = ->(controller) { controller.url_for(action: index) }
|
75
75
|
#
|
76
76
|
config.after_create_url = ->(controller) { controller.url_for(action: index) }
|
77
|
+
|
78
|
+
# Set the sender address.
|
79
|
+
#
|
80
|
+
# default: config.sender = ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
|
81
|
+
#
|
82
|
+
config.sender = ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
|
77
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_contact2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|