factory_bot_instrumentation 1.1.2 → 1.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b248a577b9cec82d72bbb47413e999e6aeb9d5c8abb2c5ebd859748335acaa43
|
4
|
+
data.tar.gz: f0fa32df2602e74ff666c9a8eedb2378d07a469844df0eed7ebb82f5e363bb9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de14c66d5da657cd5035545341548816b25b76a26f926cbd488f51d5ade26c0d031d5495ea2bcfb07ac1b71c8387050e4a23be2278196a69af5cea7ea406d8f
|
7
|
+
data.tar.gz: 9b1cd170bdfda25d8cade7a06fe535f5db3584663de14b4c59c9dec162d3f8452931e55c0115975102ac2fc2ac7d71d98c5d82623a187ed455f3f59b57260724
|
data/CHANGELOG.md
CHANGED
@@ -9,11 +9,6 @@ module FactoryBot
|
|
9
9
|
include ActionController::HttpAuthentication::Digest::ControllerMethods
|
10
10
|
include ActionController::HttpAuthentication::Token::ControllerMethods
|
11
11
|
|
12
|
-
# For some reason the Rails engine may not find its partial templates as
|
13
|
-
# it looks for wrong paths, so we add a fallback path to the view paths
|
14
|
-
base_path = Pathname.new(File.expand_path('../../../views', __dir__))
|
15
|
-
append_view_path base_path.join('factory_bot/instrumentation')
|
16
|
-
|
17
12
|
# Allow the users to implement additional instrumentation-wide before
|
18
13
|
# action logic, like authentication
|
19
14
|
before_action do |_controller|
|
@@ -29,6 +29,14 @@ module FactoryBot
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
32
|
+
|
33
|
+
# For some reason the Rails engine may not find its partial templates
|
34
|
+
# as it looks for wrong paths, so we add a fallback path to the view
|
35
|
+
# paths
|
36
|
+
app_path = Pathname.new(File.expand_path('../../../app', __dir__))
|
37
|
+
paths['app/views'].push(
|
38
|
+
app_path.join('views/factory_bot/instrumentation').to_s
|
39
|
+
)
|
32
40
|
end
|
33
41
|
end
|
34
42
|
end
|