README.rdoc in devise_phone-0.0.1663 vs README.rdoc in devise_phone-0.0.1664

- old
+ new

@@ -25,30 +25,17 @@ rails generate devise_phone MODEL Replace MODEL by the class name you want to add DevisePhone, like User, Admin, etc. This will add the :phone flag to your model's Devise modules. The generator will also create a migration file (if your ORM support them). Continue reading this file to understand exactly what the generator produces and how to use it. -In your secrets.yml, please specify your twilio_sid, twilio_token, and twilio_phone_number: +In your config/environments, please specify your twilio_sid, twilio_token, and twilio_phone_number, and twilio_message_body (use #{verification_code} to include the phone verification code of the user) : - development: - secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_sid: xxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_phone_number: 12345678 - - test: - secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_sid: xxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxx - twilio_phone_number: 12345678 - - # Do not keep production secrets in the repository, - # instead read values from the environment. - production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> - twilio_sid: <%= ENV["TWILIO_SID"] %> - twilio_token: <%= ENV["TWILIO_TOKEN"] %> - twilio_phone_number: <%= ENV["TWILIO_PHONE_NUMBER"] %> + dconfig.twilio = { + sid: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', + token: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', + phone_number: '123455678', + message_body: "Hi! This is from company u asked for. Your verification code is #{verification_code}" + } == Configuring views All the views are packaged inside the gem. If you'd like to customize the views, invoke the following generator and it will copy all the views to your application: