props_template 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/props_template/layout_patch.rb +2 -11
- data/lib/props_template/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70f4fab3905ff69848d013d7c338bdcd2c83d87a946e6a23dc28ef1361bb69bf
|
4
|
+
data.tar.gz: 441cea11b9c19da3e2179771f7e6df2d370e79e7888955f4401daae96b4088a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a61229bdb5f3c4e61a66a508b371a3e3d74ddffd0091b03b1bed47ba34d36f5e2a7d128fc8e8980fab992f2c784dce670687af72ab9c75af58a5e590898daac9
|
7
|
+
data.tar.gz: 1fdda8df4b8c30f41b3ce5c4537c90f129f7ef7ee853fffa4e3b8dc5afbfdbc64ebf9017ec332ad66d863fd16b5cd16fcaf44431aeb1315793ceb6b5490d349d
|
data/README.md
CHANGED
@@ -10,18 +10,9 @@ module Props
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def render_props_template(view, template, path, locals)
|
13
|
-
|
14
|
-
def virtual_path_of_template;"#{template.virtual_path}";end
|
15
|
-
RUBY
|
16
|
-
|
17
|
-
# Deprecated: Usage of virtual_path_of_template in local_assigns will
|
18
|
-
# be removed for a method definition above
|
19
|
-
layout_locals = locals.dup
|
20
|
-
layout_locals[:virtual_path_of_template] = template.virtual_path
|
21
|
-
|
22
|
-
layout = resolve_layout(path, layout_locals.keys, [formats.first])
|
13
|
+
layout = resolve_layout(path, locals.keys, [formats.first])
|
23
14
|
body = if layout
|
24
|
-
layout.render(view,
|
15
|
+
layout.render(view, locals) do |json|
|
25
16
|
template.render(view, locals)
|
26
17
|
end
|
27
18
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: props_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johny Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|