Skip to content

hcurotta/acts_as_importable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActsAsImportable

Installation

Add this line to your application's Gemfile:

gem 'acts_as_importable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install acts_as_importable

Usage

Add the acts_as_importable to your activerecord models and pass in an whitelist array of all the attributes you want to be importable.

class Person < ActiveRecord::Base
  acts_as_importable :first_name, :last_name
end

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/hcurotta/acts_as_importable/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 a new Pull Request

About

Gem that extends ActiveRecord models to create via CSV import

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages