props_template 0.33.0 → 0.34.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/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: a4bda132d64b759a038cef1cef91f33ce8d2b839c6dfc2178f4b878772c60001
|
4
|
+
data.tar.gz: 2774815590c928cd0b3d01a3d043f74b41086b44e9cd9e5d2947b3fbc44aeeab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34da08613e5545076e112105483fe1c2a6f851a730ffd126f48834bf08103385a31c9bff04190753bbfb1ccc55a631b5014d97f94c02f0bd097964bd3ad125a6
|
7
|
+
data.tar.gz: b0a945bc75fe63b7bc08efc64e7b4de70093ff10c298bb0f5c9f80cf828cc33211553a2bdcc0aed5a0336f7d8a6580e96c126c4c745a8a350b4ec81abf74418b
|
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.34.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-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|