Module: TokenizeAttr::Concern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/tokenize_attr/concern.rb
Overview
Include this concern in any ActiveRecord model (or any class that
provides before_create and a class-level exists? predicate) to gain
the tokenize class macro.
When Rails is loaded the concern is auto-included into
ActiveRecord::Base via an ActiveSupport.on_load hook, so explicit
inclusion is not needed in Rails apps.
All generation logic is delegated to TokenizeAttr::Tokenizer so that no
internal helpers are mixed into the model class.