express_templates 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f68c1b1c1fd84e707116c27f274c05fa564e4e7c
|
|
4
|
+
data.tar.gz: e0dd446cbcd244d728aff72f143ba9747b0732ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f408c30156803c94feb534e8bf427aedb1fbb753c465ee06655e08563cd13cba140aaf1640890a65ac65e58d96ff2e29400fc2ceb548301e4ae50b6fbb8b2162
|
|
7
|
+
data.tar.gz: 66b9fcb9283ef89056c99950e4d9691cc0a62aa351f28d323cadc34e6a09d46e796d618eeec9f060b6685f515cc7b71ad64e99d77dd01e4601ab19961a4941be
|
|
@@ -132,7 +132,11 @@ module ExpressTemplates
|
|
|
132
132
|
config[:collection_path]
|
|
133
133
|
end
|
|
134
134
|
else
|
|
135
|
-
helpers.
|
|
135
|
+
if helpers.respond_to?(:collection_path)
|
|
136
|
+
helpers.collection_path
|
|
137
|
+
else
|
|
138
|
+
helpers.instance_eval collection_path_helper
|
|
139
|
+
end
|
|
136
140
|
end
|
|
137
141
|
end
|
|
138
142
|
|
|
@@ -178,11 +182,15 @@ module ExpressTemplates
|
|
|
178
182
|
config[:resource_path]
|
|
179
183
|
end
|
|
180
184
|
else
|
|
181
|
-
if
|
|
182
|
-
|
|
183
|
-
helpers.instance_eval("#{resource_path_helper}('#{ivar_or_resource.to_param}')")
|
|
185
|
+
if helpers.respond_to?(:resource_path)
|
|
186
|
+
helpers.resource_path
|
|
184
187
|
else
|
|
185
|
-
|
|
188
|
+
if ivar_or_resource.respond_to?(:to_param) &&
|
|
189
|
+
![true, false].include?(ivar_or_resource)
|
|
190
|
+
helpers.instance_eval("#{resource_path_helper}('#{ivar_or_resource.to_param}')")
|
|
191
|
+
else
|
|
192
|
+
helpers.instance_eval("#{resource_path_helper}(#{ivar_or_resource ? '@' : ''}#{resource_name})")
|
|
193
|
+
end
|
|
186
194
|
end
|
|
187
195
|
end
|
|
188
196
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: express_templates
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Talcott Smith
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-08-
|
|
12
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|