lib/models/phone.rb in devise_phone-0.1.2 vs lib/models/phone.rb in devise_phone-0.1.21
- old
+ new
@@ -3,15 +3,15 @@
module Devise
module Models
module Phone
extend ActiveSupport::Concern
- # included do
- # before_create :set_unverified_phone_attributes, :if => :phone_verification_needed?
- # # after_create :private_generate_verification_code_and_send_sms, :if => :phone_verification_needed?
- # # before_save :remember_old_phone_number
- # after_save :private_generate_verification_code_and_send_sms, :if => :regenerate_phone_verification_needed?
- # end
+ included do
+ # before_create :set_unverified_phone_attributes, :if => :phone_verification_needed?
+ # after_create :private_generate_verification_code_and_send_sms, :if => :phone_verification_needed?
+ # before_save :remember_old_phone_number
+ after_save :set_unverified_phone_attributes, :if => :regenerate_phone_verification_needed?
+ end
def generate_verification_code_and_send_sms(phone_number)
if(phone_verification_needed?)
private_generate_verification_code_and_send_sms(phone_number)
end