index_for 0.0.8 → 0.0.9

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: 177a8e4c7f05105e1f26e7cb2c6ddc7a7579f609
4
- data.tar.gz: 3eb525f29ab950319344f0caf0a33e18dd787032
3
+ metadata.gz: 5cf24571843f717768efa22c77e37682d7dcd6b7
4
+ data.tar.gz: 5f18db5877b3889935063eaa75c0efec2de4a05e
5
5
  SHA512:
6
- metadata.gz: d2583d27d3d21467833e899f6fc1bc0504919b689e55e81699a9973342147a4881bb91c035ad85577fbf92b22590998125cee2d4d78a3ad73d66f15cb218eb45
7
- data.tar.gz: aeb75c62225dec9723fd59dc64093e596c274afd4ccbb7862af5635146d3d82543e4f2b8d5d613d033d9d7d1646a725e99d15171a52a5e6afc407349c1e539ca
6
+ metadata.gz: f8886d235b671a6e717b476be1f6001a7cafb5d29030ab3c33a4273fc565fda4eea04ed02107bd46e05d45186ad5b78966552bac5960e64fb1003904f4c26a7b
7
+ data.tar.gz: 882d11430358a5989216b3e0b37ea1827d6846ca12908aa8706b4faf708c00be6a5ed86ae9bc446f604b24444c12c56d07f7dde31c23bdcd2ae27fcd16a8ff74
@@ -73,7 +73,7 @@ module IndexFor
73
73
  def format_content content, options = {}, &block
74
74
  # We need to convert content to_a because when dealing with ActiveRecord
75
75
  # Array proxies, the follow statement Array# === content return false
76
- if block && block.arity == 1
76
+ if block && block.arity <= 1
77
77
  content = block
78
78
  elsif content.respond_to?(:to_ary)
79
79
  content = content.to_a
@@ -1,3 +1,3 @@
1
1
  module IndexFor
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theo