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 +4 -4
- data/lib/index_for/builder.rb +1 -1
- data/lib/index_for/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: 5cf24571843f717768efa22c77e37682d7dcd6b7
|
4
|
+
data.tar.gz: 5f18db5877b3889935063eaa75c0efec2de4a05e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8886d235b671a6e717b476be1f6001a7cafb5d29030ab3c33a4273fc565fda4eea04ed02107bd46e05d45186ad5b78966552bac5960e64fb1003904f4c26a7b
|
7
|
+
data.tar.gz: 882d11430358a5989216b3e0b37ea1827d6846ca12908aa8706b4faf708c00be6a5ed86ae9bc446f604b24444c12c56d07f7dde31c23bdcd2ae27fcd16a8ff74
|
data/lib/index_for/builder.rb
CHANGED
@@ -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
|
76
|
+
if block && block.arity <= 1
|
77
77
|
content = block
|
78
78
|
elsif content.respond_to?(:to_ary)
|
79
79
|
content = content.to_a
|
data/lib/index_for/version.rb
CHANGED