Sha256: 77dd4109edb76e247e6e5d2b26d3c30f68a5705d7dd287bf8c7c072b12d33b22

Contents?: true

Size: 727 Bytes

Versions: 6

Compression:

Stored size: 727 Bytes

Contents

# ActsAsDowncasableOn 

Easy way to define AR attributes that should be stored in lowercase

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'acts_as_downcasable_on'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install acts_as_downcasable_on
    
## Usage

Setup

```ruby
class User < ActiveRecord::Base
  acts_as_downcasable_on :email, :login
end
```

Attributes `email` and `login` will be forced to lowercase before model validation.

## 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

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_downcasable_on-0.2.3 README.md
acts_as_downcasable_on-0.2.2 README.md
acts_as_downcasable_on-0.2.1 README.md
acts_as_downcasable_on-0.1.2 README.md
acts_as_downcasable_on-0.2.0 README.md
acts_as_downcasable_on-0.1.1 README.md