cookpad-performance 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cookpad/performance/engine.rb +2 -1
- data/lib/cookpad/performance/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: e6178b382d73886acf8368666545f31864a5fc558606c660f4a3b37f291358d5
|
4
|
+
data.tar.gz: 47e6595496257a8e39d97224b471622afdaf977eedd2adf423bfbb502b5bf74b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec0eca928c77113427864e46e8cd37fcf807efa4197ac526f3cb4bd36f240cdd49a9c9d0bfb0c3e5e40a4e4ae8eefddaa737afb118767bc255eca31e3a694a8
|
7
|
+
data.tar.gz: 8f153c05892b5cf1bf6581d5078a824819ce07d18bce66e724a970e251a25a90d0e3b52638bf05d2c29b181336e81521e4f931453681443c14df84aaa4892fc1
|
@@ -7,7 +7,8 @@ module Cookpad
|
|
7
7
|
if !Rails.env.production? &&
|
8
8
|
(ENV["LOG_N_PLUS_ONE_QUERIES"] == "true" ||
|
9
9
|
ENV["RAISE_N_PLUS_ONE_QUERIES"] == "true")
|
10
|
-
|
10
|
+
|
11
|
+
ActionController::Base.include(Cookpad::Performance::NPlusOneDetection)
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|