createsend-rails 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 201e6e00e38af499bfe9fbd116cf227c9c02c6d820111adcec29222312617420
4
- data.tar.gz: 6e97b50ece7b4d47d2cbc125133b82f0210876418709d498da50b239fc075b38
3
+ metadata.gz: 0742b57d7f6f0e6d955fbcfd3d18211dde6d7b8e475b0a621131afea61d182bd
4
+ data.tar.gz: 1191de843ecab00ded84e2acf137df5b2b3cf47618b2d232485c2054d6f85935
5
5
  SHA512:
6
- metadata.gz: 1a63057c0539a3591ebf187094cce63a921ebb67adb437ef4e896325493d7024579b38dc07e0e81587bff202381b6a9011aabe747993a48d89be60b898b11c3e
7
- data.tar.gz: f83bbe06034f3e1fd6a32e3348fa4ea100a15678ba7297a3c9c8cc95db308541d841300413cbdd3e408bd7d3edc03e252e5685f144ead6ebd98bda43dbf1b4a8
6
+ metadata.gz: f2cac7d5029608c66affc4db3b667e7122bcfb2df3aa53a8aa10d6e8c2f54eb415707b7c62ed01f3a06924a13c78383fa09ef7a869947f768bb0f68d3d947f36
7
+ data.tar.gz: e2b283a15be906085b3b2c8ed85adcc99927196af90128deb8e0f0afb71e60e3e1d1dff448746e3aa2c78e196ce40a5788f4b133a2dbc5b75e52420bf5c0921c
data/README.md CHANGED
@@ -22,7 +22,7 @@ config.action_mailer.create_send_settings = {
22
22
  api_key: 'INSERT_API_KEY'
23
23
  }
24
24
  ```
25
- Now go into your `views/*_mailer/` and add a `.json` view, which defines the data attributes required by your Smart Email template. Below is an example of a password reset email.
25
+ Now go into your `views/*_mailer/` and add a `.json.erb` view, which defines the data attributes required by your Smart Email template. Below is an example of a password reset email. (Don't forget to declare the appropriate instance variables in your mailer)
26
26
 
27
27
  ```json
28
28
  {
@@ -25,7 +25,7 @@ module CreatesendRails
25
25
 
26
26
  def values
27
27
  return if @message.try(:body).empty?
28
- JSON.parse(@message.try(:body).try(:encoded)).symbolize_keys!
28
+ JSON.parse(@message&.body&.raw_source).symbolize_keys!
29
29
  end
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module CreatesendRails
2
- VERSION = '0.3.6'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: createsend-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Scott