props_template 0.33.0 → 0.35.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 +1 -1
- data/lib/props_template/extensions/partial_renderer.rb +1 -1
- data/lib/props_template/layout_patch.rb +1 -1
- 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: 8400f382bf1e777d3b2a863228bfec9486388f1f3ef77e127cbc1220a9917e32
|
4
|
+
data.tar.gz: 5847aae3d52a018f4c31e437a46147882da8c6cf35d38bc282fb068bc4b3b678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d730232224bfea323784f896dd51f4f00025cf922ee5e5791e767520b852b0af8b717bd787183cd02a30a985ee9821d8b19eddf362adf64225d2959ca22dfa9f
|
7
|
+
data.tar.gz: 29c1a6a96ebc9fca218d7aaea1064d5b916e494dae534c11b0572c06f8d1543b8c0f5c651d1df00144fa372546a6992058d9c73dd810a8d57c78bacc2e078fb1
|
data/README.md
CHANGED
@@ -72,7 +72,7 @@ gem 'props_template'
|
|
72
72
|
and run `bundle`.
|
73
73
|
|
74
74
|
Optionally add the [core ext](#array-core-extension) to an initializer if you
|
75
|
-
want to [dig](#
|
75
|
+
want to [dig](#traversing) into your templates.
|
76
76
|
|
77
77
|
```ruby
|
78
78
|
require 'props_template/core_ext'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Props
|
2
2
|
module LayoutPatch
|
3
3
|
def render_template(view, template, layout_name, locals)
|
4
|
-
|
4
|
+
if !view.respond_to?(:active_template_virtual_path) && template.respond_to?(:virtual_path)
|
5
5
|
view.instance_eval <<~RUBY, __FILE__, __LINE__ + 1
|
6
6
|
def active_template_virtual_path; "#{template.virtual_path}";end
|
7
7
|
RUBY
|
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.35.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: 2024-
|
11
|
+
date: 2024-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|