<commit_before>= Cereal box.

Serialization filters for active record.

== Motivation

Ever have a controller that looks like this?

    class ThingController < ActionController::Base
      respond_to :json

      def show
        @thing = Thing.find(1)
        @thing = @thing.as_json 
        @thing[:other_things][:name] = thing.other_thing.name
        @thing[:other_related_thing][:name] = thing.other_related_thing.name

        respond_with(@thing)
      end
    end

Specifically adding additional related information from other models
into the serialized hash of an object?  Well, no more!
<commit_msg>small polish of readme<commit_after>= Cereal box.

Serialization filters for active record.

== Motivation

Ever have a controller that looks like this?

    class ThingController < ActionController::Base
      respond_to :json

      def show
        @thing = Thing.find(params[:id])
        @thing_json = @thing.as_json 
        @thing_json[:other_things][:name] = @thing.other_thing.name
        @thing_json[:other_related_thing][:name] = @thing.other_related_thing.name

        respond_with(@thing_json)
      end
    end

Specifically adding additional related information from other models
into the serialized hash of an object?  Well, no more!

{'fraction_non_alphanumeric': 0.07996832937450514, 'fraction_numerical': 0.000791765637371338, 'mean_word_length': 3.388888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?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': '702659', 'n_tokens_mistral': 368, 'n_tokens_neox': 346, 'n_words': 109}