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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -1
  3. data/VERSION +1 -1
  4. data/lib/to_xls-rails.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc85729ab994d87bba3fdf13b49dfa92733ae35d
4
- data.tar.gz: fdc0cac96d55a7c464874e578c5764723b431b2b
3
+ metadata.gz: f7cf96b53affb87910c4be6d404b6b3450be0b65
4
+ data.tar.gz: f47f88237521b3fda29409dd9ede3a2f281f6ac9
5
5
  SHA512:
6
- metadata.gz: 5ee3489afa3488a7f7c799bd047c481163c82fed92a800489359b7d220197f0542e7b3b38d66d6f114b3fdcb146d5a420d6ddc709aec1669ea839048186f5007
7
- data.tar.gz: 140d26d179ca13a1e8bfe678df3cdf2ef392b73af58b609caed766a5a9026416c91655be6183d6282aeff6c0a1b6965ca3e253375a47c77369af831be62a8e35
6
+ metadata.gz: 4ce1b421aef9d1f2fe6dc380459c0f4bdc0ff7239142dd12e0b9e8db47b69a260c0135bd20b81c872cef7975fc34263ab849f1f3c4e3ad5e461ea9cf743bfe57
7
+ data.tar.gz: 7993f824ec2ba2ec5a89eb5e20d868d1b1216288c4c4065bfe1c0f7f5dff99a2a21810f1518f61ee50cc8f6c8fde44a969f2a305282723cf0d9525d20e3e8a7c
@@ -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 activerecords for Rails.
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.0
1
+ 1.3.1
@@ -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.class.attributes.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
25
+ columns = self.first.attributes.keys.map(&:to_sym) - Array(options[:except]).map(&:to_sym)
26
26
  end
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_xls-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Liang