TMP commit
This commit is contained in:
@@ -25,7 +25,6 @@ module CsvExportable
|
||||
included do
|
||||
class << self
|
||||
def csv_headers
|
||||
puts "HEADERS ===="
|
||||
plural_class_name = self.name.underscore.pluralize
|
||||
headers = HEADERS[self.name.underscore.to_sym]
|
||||
|
||||
@@ -36,12 +35,9 @@ module CsvExportable
|
||||
end
|
||||
|
||||
def to_csv_row
|
||||
puts "==== = CSV ROW"
|
||||
v = VALUES[self.class.name.underscore.to_sym].map do |function|
|
||||
VALUES[self.class.name.underscore.to_sym].map do |function|
|
||||
send(function)
|
||||
end
|
||||
puts v
|
||||
v
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user