<commit_before>Active Null Object
==================

Instead of returning nil when an association is not found, return a [Null Object](http://martinfowler.com/eaaCatalog/specialCase.html).

Associations
------------
```ruby
# Automatically searches for the Null Object based on the association name (NullUser)...
belongs_to :user, null_object: true

# ...or pass explicit class name.
belongs_to :user, null_object: 'NullAdmin'
```

Finder
------
```ruby
# Use a specialized finder if you want a Null Object if the record is not found.
User.find_or_null_object(1)
```
<commit_msg>Update README with new customizable null_object for find-method<commit_after>Active Null Object
==================

Instead of returning nil when an association is not found, return a [Null Object](http://martinfowler.com/eaaCatalog/specialCase.html).

Associations
------------
```ruby
# Automatically searches for the Null Object based on the association name (NullUser)...
belongs_to :user, null_object: true

# ...or pass explicit class name.
belongs_to :user, null_object: 'NullAdmin'
```

Finder
------
```ruby
# Use a specialized finder if you want a Null Object if the record is not found.
User.find_or_null_object(1)

# ...or pass explicit class name.
User.find_or_null_object(1, null_object: 'NullAdmin')
```

{'fraction_non_alphanumeric': 0.14549653579676675, 'fraction_numerical': 0.0023094688221709007, 'mean_word_length': 4.371900826446281, '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': '1932390', 'n_tokens_mistral': 389, 'n_tokens_neox': 368, 'n_words': 141}