<commit_before>= SearchableRecord

SearchableRecord is a small Ruby on Rails plugin that makes the parsing of
query parameters from URLs easy for resources, allowing the requester to
control the items (records) shown in the resource's representation.

The implementation is a helper module (a mixin) for ActiveRecord models. It
is used by including SearchableRecord module in a model.

The mixin provides a class method, <tt>SearchableRecord#find_queried</tt>,
to the class that includes it. The method is a front-end to
<tt>ActiveRecord::Base#find</tt>: it parses query parameters against the
given rules and calls <tt>find</tt> accordingly, returning the results of
<tt>find</tt>.

== A usage example
<commit_msg>Added a Ruby compatibilty note to README.rdoc.<commit_after>= SearchableRecord

SearchableRecord is a small Ruby on Rails plugin that makes the parsing of
query parameters from URLs easy for resources, allowing the requester to
control the items (records) shown in the resource's representation.

The implementation is a helper module (a mixin) for ActiveRecord models. It
is used by including SearchableRecord module in a model.

The mixin provides a class method, <tt>SearchableRecord#find_queried</tt>,
to the class that includes it. The method is a front-end to
<tt>ActiveRecord::Base#find</tt>: it parses query parameters against the
given rules and calls <tt>find</tt> accordingly, returning the results of
<tt>find</tt>.

The plugin is compatible with Ruby 1.9.1.

== A usage example

{'fraction_non_alphanumeric': 0.06440903054448871, 'fraction_numerical': 0.00199203187250996, 'mean_word_length': 5.2272727272727275, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4061312', 'n_tokens_mistral': 400, 'n_tokens_neox': 388, 'n_words': 205}