Sha256: d60e2a60dff8b8f6ecd37d49c663b10cefa9cc533f617939f95f08801343312d

Contents?: true

Size: 694 Bytes

Versions: 4

Compression:

Stored size: 694 Bytes

Contents

# Simple validators

## Installation

Add this line to your application's Gemfile:

    gem 'simple-validators'

And then execute:

    $ bundle

## Model validations

To use model validations include `Simple::Validators` in your model.

```ruby
class User < ActiveRecord::Base
  include Simple::Validators

  attr_accessible :email, :username

  validates :email, presence: true, email: true
  validates :username, presence: true, username: true
end
```

## Contributing

1. Fork it
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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-validators-1.2.0 README.md
simple-validators-1.1.0 README.md
simple-validators-1.0.1 README.md
simple-validators-1.0.0 README.md