module BarkestCore::NamedModel

Defines a few extensions to models that have unique names.

If the unique field is named :name then you don’t have to do anything more than include this file. For other unique fields simply define UNIQUE_STRING_FIELD to the name of the unique field as either a symbol or a string.