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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4f538f73814c66cb307f2c2cdba5b3962b64252
4
- data.tar.gz: 36141cbfa5ca65b536ec50d7f8a191aa36731e63
3
+ metadata.gz: a65d95a34e52d2bfbba166e44f08f537342ff7e6
4
+ data.tar.gz: 8bc8ffd3a466815047991e8484a937d850bc3dbc
5
5
  SHA512:
6
- metadata.gz: 34b6dc9be02b7839d03e88e6f64b188cf83681dff973d6a0fb2c6cfdc65c172704bf31bc8b17a690c5a5c7929b0c5f20dbf1a75f76e33e92c7f5019e3cdd77d3
7
- data.tar.gz: 1159057018c7fd64b9ea7e58d462ecad2a610bdb9e8c3ccfd513c6cd528f03dcfce0fd7428bdcb1e56bc33ba90baf3a9ae07725762a86f0c3d6c353f2166393b
6
+ metadata.gz: 98a6bfcbb32d121bb3a154745a65d1b0879dc21c46746ebdecb4ee8745f96512b9de3513206f5872e736889faeaa90b83167045c4fc110183d7bc29d4e569537
7
+ data.tar.gz: bb6c0bd057fd945894fb1275fa8614b2eee1b34a674eed14fffb6b5f33cd1ba4322a3d334dc5471b16d30ba7a95489b653bf2fb606eb6f16975adabbc6406797
@@ -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
- defined? @context &&
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
@@ -6,6 +6,6 @@ end
6
6
 
7
7
  class Jbuilder
8
8
  module Jpartial
9
- VERSION = '1.0.1'.freeze
9
+ VERSION = '1.0.2'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jbuilder-jpartial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Simon Borg