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
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
- Fork it ( https://github.com/hcurotta/acts_as_importable/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request