<commit_before># NoLimits

An active record extension for active record 3 and 4. This gem makes has_many associations with limits and has_one associations prettier.

## Installation

Add this line to your application's Gemfile:

    gem 'no_limits'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install no_limits

## Usage

Instead of the verbose

    has_many :associations, limit: 3

you can simply write

    has 3, :assocations

You can append any options as normally, like

    has 3, :assocations, dependent: :destroy

That's it! It also works with has_one associations like so:

    has 1, :association

## 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<commit_msg>mention thanks in readme<commit_after># NoLimits

An active record extension for active record 3 and 4. This gem makes has_many associations with limits and has_one associations prettier.

## Installation

Add this line to your application's Gemfile:

    gem 'no_limits'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install no_limits

## Usage

Instead of the verbose

    has_many :associations, limit: 3

you can simply write

    has 3, :assocations

You can append any options as normally, like

    has 3, :assocations, dependent: :destroy

That's it! It also works with has_one associations like so:

    has 1, :association

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

## Thanks
...to @fvonx and @metafoo for the inspiration.
{'fraction_non_alphanumeric': 0.0706137968495383, 'fraction_numerical': 0.011950027159152634, 'mean_word_length': 3.6751269035532994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2689411', 'n_tokens_mistral': 576, 'n_tokens_neox': 526, 'n_words': 258}