csv_x 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csv_x.rb +1 -1
- metadata +1 -1
data/lib/csv_x.rb
CHANGED
@@ -3,7 +3,7 @@ require 'csv'
|
|
3
3
|
module CsvX
|
4
4
|
def self.export(header, datas)
|
5
5
|
fail 'Argument Error args[1] must be Array' if header.class != Array
|
6
|
-
fail 'Argument Error args[1] must be ActiveRecord' if
|
6
|
+
# fail 'Argument Error args[1] must be ActiveRecord' if datas.class != ActiveRecord
|
7
7
|
@header = header
|
8
8
|
file = __FILE__
|
9
9
|
file.slice!(-3..-1)
|