Sha256: 64bbcc6bd1114948f2e938b51d1ab3f9b74458e24d5ef2dda869e3d61ed89446

Contents?: true

Size: 784 Bytes

Versions: 5

Compression:

Stored size: 784 Bytes

Contents

# ActiverecordTouchy


Extend AR to use `touch` for `has_many` and `has_one` relations

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'activerecord_touchy'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install activerecord_touchy
    
## Usage

Setup

```ruby
class User < ActiveRecord::Base
  has_many :articles, touch: true
  has_one :profile, touch: true
end
```

After changing user object relations `articles` and `profile` will be touched.
Associations are required `updated_at` column.

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

5 entries across 5 versions & 1 rubygems

Version Path
activerecord_touchy-0.1.4 README.md
activerecord_touchy-0.1.3 README.md
activerecord_touchy-0.1.2 README.md
activerecord_touchy-0.1.1 README.md
activerecord_touchy-0.1.0 README.md