1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-08 03:45:52 +03:00

Translation helper strips ! from action name for lazy translations

Этот коммит содержится в:
Max Melentiev
2018-06-07 14:10:22 +06:00
родитель 6dd705fe89
Коммит 7ff89d012c
4 изменённых файлов: 66 добавлений и 8 удалений

Просмотреть файл

@@ -12,6 +12,7 @@
- `:telegram_bot` rspec tag is replaced with `telegram_bot: :rails`.
- __Breaking change__. Use bang-methods as actions for commands.
This prevents calling context contextual actions and payload specific actions with commands.
Translation helper strips `!` from action name for lazy translations.
- __Breaking change__. Drop `.context_handler`, `.context_to_action!` methods.
Use pass action name directly to `#save_context`.
It's the same as `.context_to_action!` is enabled by default.