<commit_before>## Collectable ##

So, I serialize stuff into arrays in my AR objects where it doesn't make
sense to go through the rigamaroe of actually making an empty AR model
to use for the association. This is just a bit of glue to make using
that pattern a bit easier with 

There's not much to this thing, and what's there exists only to serve the
needs that I've had for this sort of thing.

That said, pull requests are totally welcome :)

## Gem Setup ##

```ruby
gem install collectable

# Gemfile
gem 'collectable'
```
## Basic usage ##

The short version is "include the module and define some traits." That's also
the long version, as it were.

```ruby
class HairColor
  include Collectable

  trait :blonde
  trait :brown
  trait :red
  trait :black
  trait :purple
  trait :tie_dye
end
```

Then, to actually use the thing, do something like this in your view:

```erb
<%= form_for @person do |f| %>
  <%= f.collection_check_boxes(:hair_color, HairColor.collected, HairColor.value, HairColor.name) %>
<% end %>
```

## Contributing ##

Do you use git-flow? I sure do. Please base anything you do off of
[the develop branch](https://github.com/ess/absolution/tree/develop).

1. Fork it.
2. Perform some BDD magic. Seriously. Be testing.
3. Submit a pull request.

## History ##

* 0.0.1 - Initial release

## License ##

MIT License. Copyright 2014 <NAME>
<commit_msg>Release 0.0.1<commit_after>## Collectable ##

So, I serialize stuff into arrays in my AR objects where it doesn't make
sense to go through the rigamaroe of actually making an empty AR model
to use for the association. This is just a bit of glue to make using
that pattern a bit easier with 

There's not much to this thing, and what's there exists only to serve the
needs that I've had for this sort of thing.

That said, pull requests are totally welcome :)

## Gem Setup ##

```ruby
gem install collectable

# Gemfile
gem 'collectable'
```
## Basic usage ##

The short version is "include the module and define some traits." That's also
the long version, as it were.

```ruby
class HairColor
  include Collectable

  trait :blonde
  trait :brown
  trait :red
  trait :black
  trait :purple
  trait :tie_dye
end
```

Then, to actually use the thing, do something like this in your view:

```erb
<%= form_for @person do |f| %>
  <%= f.collection_check_boxes(:hair_color, HairColor.collected, HairColor.value, HairColor.name) %>
<% end %>
```

## Contributing ##

Do you use git-flow? I sure do. Please base anything you do off of
[the develop branch](https://github.com/ess/absolution/tree/develop).

1. Fork it.
2. Perform some BDD magic. Seriously. Be testing.
3. Submit a pull request.

## History ##

* 0.0.1 - Public release

## License ##

MIT License. Copyright 2014 <NAME>

{'fraction_non_alphanumeric': 0.09627216793340572, 'fraction_numerical': 0.008324285197249367, 'mean_word_length': 3.832167832167832, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '4056057', 'n_tokens_mistral': 895, 'n_tokens_neox': 841, 'n_words': 391}