From 4bf5956b4173598c84831e34032ae97dc5a9bcfc Mon Sep 17 00:00:00 2001 From: Konstantin Reido Date: Fri, 22 Jun 2018 00:30:11 +0300 Subject: [PATCH] Add a note to README about credentials API appeared in rails 5.2 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bf42ce..31a1aac 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ require 'telegram/bot' ### Configuration in Rails app -Add `telegram` section into `secrets.yml`: +For Rails < 5.2 add `telegram` section into `secrets.yml`: ```yml development: @@ -79,6 +79,8 @@ development: username: ChatBot ``` +For Rails > 5.2 edit credentials `EDITOR=nano rails credentials:edit` + From now clients will be accessible with `Telegram.bots[:chat]` or `Telegram.bots[:auction]`. Single bot can be accessed with `Telegram.bot` or `Telegram.bots[:default]`.