findbug 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: c722ca45605700abb60218e4f1235a05351b6b70e591a71aec8be182605bde21
4
- data.tar.gz: 74860b9979a5a9648a0d7e7dae574402792e7ab0fdf0e20814be82bd26c351bb
3
+ metadata.gz: 1c29bc5c8718f46a269d9987839af57928d7aab2c0b3451f08edd4683729f381
4
+ data.tar.gz: fd9771ef2dee52d0b50fa1b5226c401b15ce85e3c4481e15684907d5756b83db
5
5
  SHA512:
6
- metadata.gz: a3f57534ea32b44c6f17a3fdc6cbdbaf13f33e30081f953b75777ba6309ce7fb9fab6c374fea24a9ef853dc13c09b3bf139d6a2a8b20fdd42b634ddda930bf9b
7
- data.tar.gz: b717253e518e0ee0c917e4680ef32be97f49a942df1f3df304c2faea6202c66ddf7a0d34a9470bbe39319913c5af8f7662e2865a82f1b805f67430f707eddc54
6
+ metadata.gz: '018370d27b3517272c7ecf1c1f392c2d3abbcd54b92d223227ad200f39232f534a0ecc875fc79019bad2bf7e48fdbe9b81ac51326fdfdc9854fa6da2f8c9149d'
7
+ data.tar.gz: 64bb0554fd369ed717dd17b3c05fdfc7ae5fb275c461491ee85a19dcae91938e07e371941bc21940def52d69426f2d1bc6397300a365b3d1782555642ed18387
@@ -6,11 +6,7 @@ require "rails/engine"
6
6
  # __dir__ is lib/findbug, so we go up two levels to get the gem root
7
7
  FINDBUG_GEM_ROOT = File.expand_path("../..", __dir__)
8
8
 
9
- # Require models (needed for persistence)
10
- require_relative "../../app/models/findbug/error_event"
11
- require_relative "../../app/models/findbug/performance_event"
12
-
13
- # Require controllers
9
+ # Require controllers (needed for routing)
14
10
  require_relative "../../app/controllers/findbug/application_controller"
15
11
  require_relative "../../app/controllers/findbug/dashboard_controller"
16
12
  require_relative "../../app/controllers/findbug/errors_controller"
@@ -77,6 +73,14 @@ module Findbug
77
73
  end
78
74
  end
79
75
 
76
+ # Load models after ActiveRecord is ready
77
+ # This is important for multi-tenant setups (Apartment) where excluded_models
78
+ # are resolved early in the boot process
79
+ initializer "findbug.load_models", after: :load_config_initializers do
80
+ require_relative "../../app/models/findbug/error_event"
81
+ require_relative "../../app/models/findbug/performance_event"
82
+ end
83
+
80
84
  # NOTE: We intentionally do NOT add session/flash middleware here.
81
85
  # Adding middleware to API-mode apps would change their behavior
82
86
  # (e.g., showing HTML error pages instead of JSON).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Findbug
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: findbug
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
  - Soumit Das