Module: PicoPhone::Rails::Normalizer
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/pico_phone/rails/normalizer.rb
Overview
Included into ActiveRecord::Base by the railtie. Adds a normalize_phone
class macro that rewrites the given attributes to E.164 before validation
runs, so validators and persisted data see a consistent format.