scratchpaper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scratchpaper.rb +1 -1
- data/lib/scratchpaper/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: f71ca3c3b6cce9f0f1ce3b7df3b60374153dad10
|
4
|
+
data.tar.gz: 4878fbe51e5a86a1a81453d0dcfaacad9e4f8eb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ae509c610a5d679a42adddf3906b63f6692a3b053cd3e88f69f4780c1a55e50f418114ff809603fe927ec756f1586b4df7ef3c9d7cdae0ea36231971deb71a4
|
7
|
+
data.tar.gz: 4d946b3a594c336f00eecdefe50cba655f558ab2a1506e659126bdb13534d068d022b41952de72f01f957aae655b15bcfc5bf852c2712b846369e0430f38d593
|
data/lib/scratchpaper.rb
CHANGED
@@ -26,7 +26,7 @@ module ScratchPaper
|
|
26
26
|
def sr(data)
|
27
27
|
case data
|
28
28
|
when ActiveRecord::Relation
|
29
|
-
st([data.attribute_names] + data.map { |r|
|
29
|
+
st([data.attribute_names] + data.map { |r| r.attributes.values })
|
30
30
|
when ActiveRecord::Base
|
31
31
|
st(data.attributes.to_a)
|
32
32
|
end
|
data/lib/scratchpaper/version.rb
CHANGED