sequel-activerecord_connection 1.3.0 → 1.3.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/sequel/extensions/activerecord_connection.rb +8 -4
- data/sequel-activerecord_connection.gemspec +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: 0e7023579a13396cf034b357786ebf56c98c15a09693ffe97900c86b221cc596
|
4
|
+
data.tar.gz: ff4b9033f260499e70a7f82ee901a77a8e370b230e968072c04d9ae5d4226029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0955585457b396ffe074ddb6c040adba15b42052d1c1649635c85223b7cee86e11986b639cbe2a868048ab6926d410f5564210ef745101aa880d591242c57d
|
7
|
+
data.tar.gz: 459fd7c8b13036b93afe8dfd9a63af1137997ad04fd8e340a9a218c31196ff319dc29861647bfffd9e9a338a21a3cacb88439d04e45fff09f5fa81765167025f
|
data/CHANGELOG.md
CHANGED
@@ -58,10 +58,14 @@ module Sequel
|
|
58
58
|
end
|
59
59
|
|
60
60
|
# Clear Active Record's query cache after potential data modifications.
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
%i[execute_ddl execute_dui execute_insert execute].each do |execute_method|
|
62
|
+
define_method(execute_method) do |*args, &block|
|
63
|
+
begin
|
64
|
+
super(*args, &block)
|
65
|
+
ensure
|
66
|
+
clear_activerecord_query_cache
|
67
|
+
end
|
68
|
+
end
|
65
69
|
end
|
66
70
|
|
67
71
|
private
|