blazer-plus 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2315dcdf5094e74fd5c1cba5a583eb504e56d4cb917900a02b0fa423f7659ea
4
- data.tar.gz: 444ef92d9814ec8d65bcf8d09eb60d2b651f8d59330e859903abd3b423a290a9
3
+ metadata.gz: e34a7321bc85c60564a51d89d0008e94fab2f1562d73b5bf954d31b2cb4d73b2
4
+ data.tar.gz: cb1547a793dde68439d5058b073e62b0fb5c348fc906813e4df14b26f90b54fb
5
5
  SHA512:
6
- metadata.gz: 3b54a5de1403b8917e4be8de161fbfc4b8e2160326b15d61d40bb7688edc2f8c07ef72e1645d647829a2c946da90b783c2ed5cfeba508c8ae3ab52a7dbb1f111
7
- data.tar.gz: dce7ffa42dcac73d063951c5b6357132963742dc9d1c0e37f8f6d94dafd11a21f7aadec4bb8518a8aa5e340b755298c3e69b44806c44f27be41560c15357a40f
6
+ metadata.gz: a4afd1911242d1ebcec0784ce8146f5d3b63b3763d6f48e8071159fcc695127fb37e4174a75e3c2a33839b52eaf08c4bc7bbcf456431a4ef189f6f4634393b75
7
+ data.tar.gz: 5303d33fa0188f7ad9f8f3422659d0938e1a7264872711b8d0fee6fa91770a9062248b3ca9fd66cf2d31013843103130a26592e60e4694b7a8fe7a6cf3e0283c
@@ -6,8 +6,12 @@ require_relative 'queries_controller'
6
6
  module Blazer
7
7
  module Plus
8
8
  class Railtie < ::Rails::Railtie
9
- initializer :initialize_blazer_plus, after: :load_config_initializers do
10
- Rails.application.reloader.to_prepare do
9
+ # Some gems (for example, action_policy) extend ActionController::Base in their to_prepare blocks and
10
+ # the blocks must be called before subclasses of ActionController::Base are loaded.
11
+ # So following to_prepare block must be called after other gems' to_prepare blocks.
12
+ # `before: :add_to_prepare_blocks` enforces the order of them.
13
+ initializer :initialize_blazer_plus, before: :add_to_prepare_blocks do
14
+ Rails.application.config.to_prepare do
11
15
  ::Blazer::QueriesController.prepend(::Blazer::Plus::QueriesController) if ::Blazer::Plus.enabled
12
16
  end
13
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Blazer
4
4
  module Plus
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazer-plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: blazer