зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-08 11:55:51 +03:00
Fix specs for rails 4
Этот коммит содержится в:
@@ -50,7 +50,12 @@ RSpec.describe Telegram::Bot::UpdatesController::Instrumentation do
|
|||||||
x.before_action :halter_method
|
x.before_action :halter_method
|
||||||
|
|
||||||
def halter_method
|
def halter_method
|
||||||
|
require 'active_support/version'
|
||||||
|
if ActiveSupport::VERSION::MAJOR >= 5
|
||||||
throw :abort
|
throw :abort
|
||||||
|
else
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self
|
self
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user