rails_email_preview 0.2.23 → 0.2.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rails_email_preview/version.rb +1 -1
- data/lib/rails_email_preview/view_hooks.rb +2 -2
- 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: 723b3b7a4b1d1376acf3258b3ec572240ee6a1be
|
4
|
+
data.tar.gz: da7a7ab5422204565144db25a899436cc411d767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92cec71d380a0ae6e3733a312577fc2d8010fc95288a9e7fb0c0f3379053d1d6e58820a865298a43165761b68242df2da13031c713b68b225fafda27b5b8bdf1
|
7
|
+
data.tar.gz: b19cb93bfc3dc78d0ed07c6d6bee2cb30aec9fbefadf9777dc157c9bd768daa3d908551b3cfdbf3eb690aba622a90ea61b32929c084290ca9e56b82254646e8e
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ REP can use your application styles, markup is compatible with [bootstrap 3][rep
|
|
16
16
|
Add [![Gem Version][gem-badge]][gem] to Gemfile:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem 'rails_email_preview', '~> 0.2.
|
19
|
+
gem 'rails_email_preview', '~> 0.2.24'
|
20
20
|
```
|
21
21
|
|
22
22
|
Add an initializer and the routes:
|
@@ -28,8 +28,8 @@ module RailsEmailPreview
|
|
28
28
|
# @example
|
29
29
|
# view_hooks.add_render :list, :before, partial: 'shared/hello'
|
30
30
|
def add_render(id, pos, *render_args)
|
31
|
-
render_args = render_args.
|
32
|
-
render_opts = render_args.extract_options
|
31
|
+
render_args = render_args.dup
|
32
|
+
render_opts = render_args.extract_options!.dup
|
33
33
|
add id, pos do |locals = {}|
|
34
34
|
render *render_args, render_opts.merge(
|
35
35
|
locals: (render_opts[:locals] || {}).merge(locals))
|