Sha256: bdb496c2a196d878fdb4e269927f9e3d18daa0a13837538deb503689c02ca739
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
require 'to_xls/writer.rb' module Enumerable # Options for to_xls: columns, name, header, sheet def to_xls(options = {}) ToXls::Writer.new(self, options).write_string end end # ActiveRecord::Relations that haven't been unrolled into an array cause problems down the line - issue #15 if defined?(ActiveRecord::Relation) class ActiveRecord::Relation def to_xls(options = {}) self.to_a.to_xls(options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
to_xls-1.5.3 | lib/to_xls/enumerable_patch.rb |