Sha256: c8583742145a6fdb1593a1b7f6eba5ff9338a9832fc3543cd5c150c29fcc729c
Contents?: true
Size: 899 Bytes
Versions: 4
Compression:
Stored size: 899 Bytes
Contents
# activemodel-csv_validator CSV Validator for Active Model ## Installation Add this line to your application's Gemfile: ```ruby gem 'activemodel-csv_validator' ``` And then execute: $ bundle Or install it yourself as: $ gem install activemodel-csv_validator ## Usage ```ruby class CsvForm include ActiveModel::Model attr_accessor :file validates :file, presence: true, csv: { max: 100, headers: %w[field1 field2 field3] } end ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/aki77/activemodel-csv_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
activemodel-csv_validator-0.2.0 | README.md |
activemodel-csv_validator-0.1.2 | README.md |
activemodel-csv_validator-0.1.1 | README.md |
activemodel-csv_validator-0.1.0 | README.md |