Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpreadsheetableBuild Status

A scope(ActiveRecord::Relation) and a array of active_record are able to be spreadsheet with this module.

Installation

Add this line to your application's Gemfile:

gem 'spreadsheetable'

And then execute:

$ bundle

Usage

scope = AModel.all #scope or array
scope.extend Spreadsheetable
scope.sheet_columns = %w(id name other)
xls_file = scope.xls # or scope.to_spreadsheet

Contributing

  1. Fork it ( http://github.com/dongoon/spreadsheetable/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

ActiveRecord::Relation or array of active_records to SpreadSheet

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages