spree_sendwithus 2.0.11.6 → 2.0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/spree_sendwithus/message.rb +1 -1
- data/spree_sendwithus.gemspec +1 -1
- 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: d484f3e6d7964c40dee992a49773171a682246b2
|
4
|
+
data.tar.gz: 19177744e9d737990a7a2313fc9f50de24d7e021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d4e22fb7cdeeded75e8385e115ee0e7c15c9e3cec46c536b70b3c473753d1a240ae0a0e08081da4b06ad9d22b942e6c3829574ed0e070766b0b2e661b0d1cf8
|
7
|
+
data.tar.gz: af682c229be2eae7c725b4aecb8000c04072840f8cc46ca3efd53fcec7d554cbe0cab7e79e486ba24d5a55dd57211cef1c8fb2474ab484d1f52af94c8dec5f93
|
data/README.md
CHANGED
@@ -28,6 +28,13 @@ SendWithUs::Api.configure do |config|
|
|
28
28
|
end
|
29
29
|
```
|
30
30
|
|
31
|
+
If you want to globally configure the email service provider SendWithUs will use, say for sending staging emails to something like [mailtrap.io](https://mailtrap.io/), then simply add the following to an initializer:
|
32
|
+
```ruby
|
33
|
+
Spree::SendWithUs::Base.configure do |config|
|
34
|
+
config.esp_account = ENV['SEND_WITH_US_ESP_ACCOUNT']
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
31
38
|
Now you can configure any of your mailers to use SendWithUs by making them a subclass of `Spree::SendWithUsMailer::Base`. For example:
|
32
39
|
```ruby
|
33
40
|
# app/mailers/spree/quality_control_mailer.rb
|
data/spree_sendwithus.gemspec
CHANGED