isolator 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/isolator/railtie.rb +2 -2
- data/lib/isolator/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: 8a0299bddb8abe783af8113fcd57b0e9926a1e6f714d29a6ed258b876c9c7062
|
4
|
+
data.tar.gz: 06551a9aab8237dccf214eae3cf841d96f15c61c4e26b4f623979711ba5e8ddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad13d02cca26c6e0ae19e24be82e8bd08f53904c8adbb134ce0f4dc9faa7375c681c3fa62532d8284f104a97b3f51858e2e5f87c02b089108564e0064b3c5c4
|
7
|
+
data.tar.gz: 3b02cb4f11b42f6ccfbae0717cf53d5661bc92e211a99bff80b17b4c82fca6cb37b7c905ae98e74b2370c99b7d7f83e1194966b9194c11319cc5473c2ee29ce4
|
data/CHANGELOG.md
CHANGED
data/lib/isolator/railtie.rb
CHANGED
@@ -51,8 +51,8 @@ module Isolator
|
|
51
51
|
::ActiveRecord::TestFixtures.prepend(TestFixtures)
|
52
52
|
end
|
53
53
|
|
54
|
-
# Rails
|
55
|
-
if ActiveRecord::VERSION::MAJOR < 7 && defined?(::ActiveRecord::TestFixtures)
|
54
|
+
# Rails <7.1 doesn't support this load hook, so we we fallback to the prev behaviour
|
55
|
+
if (ActiveRecord::VERSION::MAJOR < 7 || ActiveRecord::VERSION::MINOR < 1) && defined?(::ActiveRecord::TestFixtures)
|
56
56
|
::ActiveRecord::TestFixtures.prepend(TestFixtures)
|
57
57
|
end
|
58
58
|
end
|
data/lib/isolator/version.rb
CHANGED