geetarista-export_csv 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/export_csv.rb +1 -0
  2. metadata +1 -1
data/lib/export_csv.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  def export_csv(klass, filename=klass, conditions="")
2
+ require 'ruport'
2
3
  records = klass.find(:all, :conditions => conditions)
3
4
  headers = klass.columns.collect{ |a| a.name }
4
5
  data = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geetarista-export_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robby Colvin