0.0
No commit activity in last 3 years
No release in over 3 years
This module implement [to_spreadsheet | xls] to ActiveRecord::Relation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

Runtime

>= 3.0.0
>= 3.0.0
~> 0.9.7
 Project Readme

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