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: 018beee9648be7172909cb241812b004795dbe49
4
- data.tar.gz: 47e8b5946af001b551ee6e5897de40857409748f
3
+ metadata.gz: f68c1b1c1fd84e707116c27f274c05fa564e4e7c
4
+ data.tar.gz: e0dd446cbcd244d728aff72f143ba9747b0732ae
5
5
  SHA512:
6
- metadata.gz: 74dcb721d16f6281b1f5b8824ac1314a7cfccbf0fe427cf360a611f9b629688723a9df6caf405a9f60ef38e858928e10b192ba25e8e9bf16dbc40448c1cee11f
7
- data.tar.gz: 49eb76041d82f329fab1a67232b8e55870b395c62b863d40d3d781c6bbf07fbc8c253555ff1a855e5299ab273acaec59345d7df8ece71c9bcb8b69df254ccf7c
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.instance_eval collection_path_helper
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 ivar_or_resource.respond_to?(:to_param) &&
182
- ![true, false].include?(ivar_or_resource)
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
- helpers.instance_eval("#{resource_path_helper}(#{ivar_or_resource ? '@' : ''}#{resource_name})")
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
@@ -1,3 +1,3 @@
1
1
  module ExpressTemplates
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  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.5
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-11 00:00:00.000000000 Z
12
+ date: 2015-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport