Skip to content

Commit

Permalink
remove not use files
Browse files Browse the repository at this point in the history
  • Loading branch information
wenke committed Mar 20, 2011
1 parent 4220b85 commit 460d356
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 34 deletions.
1 change: 0 additions & 1 deletion install.rb

This file was deleted.

4 changes: 0 additions & 4 deletions lib/tasks/to_csv_tasks.rake

This file was deleted.

16 changes: 0 additions & 16 deletions lib/to_csv.rb
@@ -1,20 +1,4 @@
class Array

# Example
#
# class PostsController < ApplicationController
# def index
# @posts = Post.all
#
# respond_to do |format|
# format.csv { send_data(@posts.to_csv) }
# #format.csv {
# # filename = "posts-#{Time.now.strftime("%Y%m%d%H%M%S")}.csv"
# # send_data(@posts.to_csv, :type => "text/csv; charset=utf-8; header=present", :filename => filename)
# #}
# end
# end
# end

def to_csv(options = {})
return '' if self.empty?
Expand Down
3 changes: 0 additions & 3 deletions test/test_helper.rb

This file was deleted.

8 changes: 0 additions & 8 deletions test/to_csv_test.rb

This file was deleted.

2 changes: 1 addition & 1 deletion to_csv.gemspec
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.summary = "Export data to csv on Rails"
s.description = "This simple plugin gives you the ability to call to_csv to a collection of activerecords. The builder options are the same as to_json / to_xml, except for the :include."

s.files = Dir["{lib,test}/**/*", "[A-Z]*", "init.rb"] - ["Gemfile.lock"]
s.files = Dir["lib/**/*", "[a-zA-Z]*", "init.rb"] - ["Gemfile.lock"]
s.require_path = "lib"

s.rubyforge_project = s.name
Expand Down
1 change: 0 additions & 1 deletion uninstall.rb

This file was deleted.

0 comments on commit 460d356

Please sign in to comment.