index_for 0.1.2 → 0.1.3

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: f637db5d2b2459b10bfe9685fc3ccac559bafb13
4
- data.tar.gz: e4d74aaad50eff2af5a5146e7175f88e1b561500
3
+ metadata.gz: ac386c403aa8a63b5f340d91af1efc33b6115bef
4
+ data.tar.gz: 1d72b0b7947d7d49baf0fe80c731125b7ffbbd82
5
5
  SHA512:
6
- metadata.gz: a443df37260f74e1bde7ba93144eef584c5215ce799c615e54cd625c73ef491ad943f5d1645860121013f745e7e6a2288aaea77fc721fd969b9f16e38ab8a8d2
7
- data.tar.gz: a9ee356a9fa0bced86a328b41088604fd2d5af8d22815ccd83acdfa6983792f02dcc3bdbc2bf39776fb48bf390317090f0fe9ef35b8a440c90d61c902c42c70f
6
+ metadata.gz: 2ab8b1cebd1d5081d921f2af165a41a55691fce9fb14c4a8d89e36204af253e639a302e6922f98206586f611d0ab94601cd0ffe1eba09339665b148f07a7c9de
7
+ data.tar.gz: b32ebeebc86daa0d277d5272c20d84ea2ac376aadccbf12d58ff1245cc29cf9915c61c75de8bcc3c6f3cf9b045cdc603273b1e4cb7d6eaa29884864407e834cf
@@ -101,6 +101,8 @@ module IndexFor
101
101
  case content
102
102
  when Array, Hash
103
103
  content.empty? ? blank_content(options) : collection_content(content, options)
104
+ when String
105
+ content.empty? ? blank_content(options) : content
104
106
  else
105
107
  content.to_s
106
108
  end
@@ -1,3 +1,3 @@
1
1
  module IndexFor
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-12 00:00:00.000000000 Z
11
+ date: 2015-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel