rails_email_preview 2.0.2 → 2.0.3

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: b6595d136da9bdf30c3a5482ea8c57000f7615bb
4
- data.tar.gz: c07d82a4300334cb80f05bb465ed93bcbd8f055b
3
+ metadata.gz: 95c79b3a9b96da7424efff16a76e79fb8a1ef655
4
+ data.tar.gz: a6effda07e1c14a4dc22a983311b7127565e99a3
5
5
  SHA512:
6
- metadata.gz: ed1b766dea0908a99e87a9f277d65c987b902611cb99c930fa16db5cf661730e26ab1198f0bfa7b4cea073112857c962281941438b2f6b4021123a541dfe690a
7
- data.tar.gz: ad4dc222663aae25b1288bed9f157fdab5db8be5de54e5d29a8776fd17bbb574525c2c60ed87a8261054c8c9378a5e8a4af20f03266b36bb068980c4a551ca42
6
+ metadata.gz: da18fdc01a498523012f835affd40902cd929c5d2c53da91b2f00e1e75f51934ba657e314a3df2f529fd942179e8cf4ca5f1c7bcd00d277b4c0dc18037995d66
7
+ data.tar.gz: 49804955465d3083d9482d3457fa757ca512b0b23016765442b406a577c547783751927bc887a0fc114d37e8fdd196dc36c5d993f39869d41b3cb07517051ec0
data/README.md CHANGED
@@ -17,7 +17,7 @@ REP comes with two themes: a simple standalone theme, and a theme that uses [Boo
17
17
  Add [![Gem Version][gem-badge]][gem] to Gemfile:
18
18
 
19
19
  ```ruby
20
- gem 'rails_email_preview', '~> 2.0.1'
20
+ gem 'rails_email_preview', '~> 2.0.3'
21
21
  ```
22
22
 
23
23
  Add an initializer and the routes:
@@ -61,14 +61,16 @@ module RailsEmailPreview
61
61
  }
62
62
  p[:snippet][:label] = default_snippet.label unless snippet.label.present?
63
63
  end
64
- send :"edit_#{cms_admin_site_snippet_route}_path", p
64
+ send :"edit_#{cms_admin_site_snippet_route}_url",
65
+ p.merge(only_path: true)
65
66
  else
66
67
  p[:snippet] = {
67
68
  label: snippet.label,
68
69
  identifier: snippet.identifier,
69
70
  category_ids: [site.categories.find_by_label('email').try(:id)]
70
71
  }
71
- send :"new_#{cms_admin_site_snippet_route}_path", p
72
+ send :"new_#{cms_admin_site_snippet_route}_url",
73
+ p.merge(only_path: true)
72
74
  end
73
75
  <<-HTML.strip.html_safe
74
76
  <table class='rep-edit-link'><tr><td>
@@ -1,3 +1,3 @@
1
1
  module RailsEmailPreview
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_email_preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.6.10
193
+ rubygems_version: 2.6.11
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Preview emails in browser (rails engine)