telegram_bot_engine 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b3bf5d33786a7847de84d3b85308001301ea88d642d8b8e881341be9bd311d1
4
- data.tar.gz: 71a00b7a640dfd91c79b6080a3295ab6621fc938a05504f94c28f9757a655c59
3
+ metadata.gz: 2931a21db63313dfcf3ebabe3e8de59eeb4802cabdcf48d0223c21994afa7dae
4
+ data.tar.gz: 15875cef95bb34506dd20b9364dc575507c5e4085686eae664fe68defff6d589
5
5
  SHA512:
6
- metadata.gz: 4d892f84a28953e2bc78c157ae9169ba3907e0482b15c79ae3068b2d7c43514d3014ee46ca415e33aaaa94c72d1c9470a9e139066ea816c17844711373d7d18f
7
- data.tar.gz: f9154fdc913b4fe766d89a9e5a6fcca88333a192e1e71c233972c0d1335d7641ef0f30fe2554a1ad16e37920c36e5a91b53a3600f7c754f3eb8e74890cd3c2cf
6
+ metadata.gz: ea050ef5a7a67a1931d41a66bb38e6cf9485d4bbb54e6a39c937c5856a7d2c8e38be42a7c9af1e69418d875288bcb0273b092dcb036637117df912d66db382ec
7
+ data.tar.gz: 7f1c49f8b38a242a109fe06a75048db2a3e66a3246f88944b228322ac33bb79c6a5c93855c5a193e835e53df72bdbbe5a2795c368a98798ca7571ca37e13e06c
@@ -4,7 +4,6 @@ module TelegramBotEngine
4
4
  module Admin
5
5
  class BaseController < ActionController::Base
6
6
  layout "telegram_bot_engine/admin/layouts/application"
7
-
8
7
  before_action :check_admin_enabled!
9
8
 
10
9
  private
@@ -10,9 +10,9 @@ module TelegramBotEngine
10
10
 
11
11
  initializer "telegram_bot_engine.middleware" do |app|
12
12
  if app.config.api_only
13
- app.middleware.use ActionDispatch::Cookies
14
- app.middleware.use ActionDispatch::Session::CookieStore
15
- app.middleware.use ActionDispatch::Flash
13
+ app.middleware.insert_before 0, ActionDispatch::Cookies
14
+ app.middleware.insert_after ActionDispatch::Cookies, ActionDispatch::Session::CookieStore
15
+ app.middleware.insert_after ActionDispatch::Session::CookieStore, ActionDispatch::Flash
16
16
  end
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TelegramBotEngine
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telegram_bot_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TelegramBotEngine Contributors