Ask A Question
Notifications
You’re not receiving notifications from this thread.
Normalizes method in ActiveRecord Discussion
Discussion for Normalizes method in ActiveRecord
I would like to add that you can add multiple attributes to be normalized
normalizes [:phone:, :fax, :mobile], with: -> phone_number { phone_number.gsub(/\D/, '') }