to_xls-rails 1.3.0 → 1.3.1
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 +4 -4
- data/README.rdoc +2 -1
- data/VERSION +1 -1
- data/lib/to_xls-rails.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: f7cf96b53affb87910c4be6d404b6b3450be0b65
|
|
4
|
+
data.tar.gz: f47f88237521b3fda29409dd9ede3a2f281f6ac9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ce1b421aef9d1f2fe6dc380459c0f4bdc0ff7239142dd12e0b9e8db47b69a260c0135bd20b81c872cef7975fc34263ab849f1f3c4e3ad5e461ea9cf743bfe57
|
|
7
|
+
data.tar.gz: 7993f824ec2ba2ec5a89eb5e20d868d1b1216288c4c4065bfe1c0f7f5dff99a2a21810f1518f61ee50cc8f6c8fde44a969f2a305282723cf0d9525d20e3e8a7c
|
data/README.rdoc
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
== to_xls-rails
|
|
2
2
|
|
|
3
|
-
This simple plugin gives you the ability to call to_xls to a collection of
|
|
3
|
+
This simple plugin gives you the ability to call to_xls to a collection of array for Rails.
|
|
4
|
+
Aarry element support object: ActiveRecord, Mongid, Hash.
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
In your Gemfile:
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.1
|
data/lib/to_xls-rails.rb
CHANGED
|
@@ -22,7 +22,7 @@ class Array
|
|
|
22
22
|
if self.first.is_a? Hash
|
|
23
23
|
columns = self.first.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
|
|
24
24
|
else
|
|
25
|
-
columns = self.first.
|
|
25
|
+
columns = self.first.attributes.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|