jbuilder-jpartial 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jbuilder/jpartial.rb +2 -3
- data/lib/jbuilder/jpartial/version.rb +1 -1
- 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: a65d95a34e52d2bfbba166e44f08f537342ff7e6
|
4
|
+
data.tar.gz: 8bc8ffd3a466815047991e8484a937d850bc3dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a6bfcbb32d121bb3a154745a65d1b0879dc21c46746ebdecb4ee8745f96512b9de3513206f5872e736889faeaa90b83167045c4fc110183d7bc29d4e569537
|
7
|
+
data.tar.gz: bb6c0bd057fd945894fb1275fa8614b2eee1b34a674eed14fffb6b5f33cd1ba4322a3d334dc5471b16d30ba7a95489b653bf2fb606eb6f16975adabbc6406797
|
data/lib/jbuilder/jpartial.rb
CHANGED
@@ -18,9 +18,8 @@ class Jbuilder
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def _method_is_a_route_helper?(method_name)
|
21
|
-
method_name.to_s =~ /(.*)_(url|path)/ &&
|
22
|
-
|
23
|
-
context.respond_to?(method_name)
|
21
|
+
method_name.to_s =~ /(.*)_(url|path)/ && !@context.nil? &&
|
22
|
+
@context.respond_to?(method_name)
|
24
23
|
end
|
25
24
|
|
26
25
|
# Jpartial module
|