зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-03 17:55:52 +03:00
Use bang-methods as actions for commands
Этот коммит содержится в:
@@ -19,11 +19,11 @@ RSpec.describe Telegram::Bot::UpdatesController::Session do
|
||||
controller_class.class_eval do
|
||||
self.session_store = :memory_store
|
||||
|
||||
def write(text)
|
||||
def write!(text)
|
||||
session[:text] = text
|
||||
end
|
||||
|
||||
def read
|
||||
def read!
|
||||
session[:text]
|
||||
end
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user