lib/models/phone.rb in devise_phone-0.0.1666 vs lib/models/phone.rb in devise_phone-0.0.1667
- old
+ new
@@ -96,10 +96,10 @@
verification_code = self.phone_verification_code
twilio_sid = Rails.application.config.twilio[:sid]
twilio_token = Rails.application.config.twilio[:token]
twilio_phone_number = Rails.application.config.twilio[:phone_number]
- twilio_message_body = en.devise.phone.message_body(:verification_code => verification_code)
+ twilio_message_body = I18n.t("devise.phone.message_body", :verification_code => verification_code)
@twilio_client = Twilio::REST::Client.new twilio_sid, twilio_token
@twilio_client.account.messages.create(
:from => "+1#{twilio_phone_number}",