sequelize-rails 0.2.0 → 0.2.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 +4 -4
- data/lib/sequelize_rails/railtie.rb +5 -1
- data/lib/sequelize_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28ba0f80f8f390c7a6e735f81466cf6de3afa6a583fa468356165dc16f6b464f
|
4
|
+
data.tar.gz: aea26a334f90d64997e596fa6830f204d59bb35f58616e34795b5e0edfdf06f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10aff2b60e7c26aa6f3ae61292372689c77574e51c8aed46529b5a90989a3f013cb3661195ba83c48e98e3df4027e6afb0b18d91ba150b73f385acd05c81bbf5
|
7
|
+
data.tar.gz: 3ad6415360fa05680722111e912d6c13be37204c76a8410e69ad18c19c2bde2a63fb9a2adf41728b6b286ae70847f1d34bdae8ff6daf58ea7f3d51ba90a7ae4e
|
@@ -10,7 +10,7 @@ require "action_controller/railtie"
|
|
10
10
|
require "sequelize_rails/railties/log_subscriber"
|
11
11
|
require "sequelize_rails/railties/controller_runtime"
|
12
12
|
|
13
|
-
# Load instrumentation before any database connections are established
|
13
|
+
# Load instrumentation (before any database connections are established)
|
14
14
|
Sequel.extension :sequel_instrumentation
|
15
15
|
|
16
16
|
# Monkey patches
|
@@ -18,7 +18,11 @@ require "sequelize_rails/db_console"
|
|
18
18
|
|
19
19
|
module SequelizeRails
|
20
20
|
class Railtie < Rails::Railtie
|
21
|
+
# Log subscriber
|
21
22
|
::SequelizeRails::Railties::LogSubscriber.attach_to :sequel
|
23
|
+
::SequelizeRails::Railties::LogSubscriber.backtrace_cleaner.add_filter { |line| line.gsub(Rails.root.to_s + File::SEPARATOR, "") }
|
24
|
+
|
25
|
+
# Config initialization
|
22
26
|
config.app_generators.orm :sequelize_rails, migration: :sequel_migration
|
23
27
|
config.sequel = ActiveSupport::OrderedOptions.new
|
24
28
|
|