active_record-comments 0.4.0 → 0.5.0
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: ad8e12409db6681e383f1f14293a113dc6fcbbc0039b76de7dd7043fe7e9c059
|
4
|
+
data.tar.gz: 3607904c6fcb0101fc9ea669bd40be5e1f91342b9be9d1c497689cc4023346b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5715132b396e1867d8f9e3cefcbcf5c1136622d86a0a14cec9df1e94f654c4a52dcc9727ce1c951c27d5b0bb3ff9241c64397bf68cac18a5894ce753f096896a
|
7
|
+
data.tar.gz: 789f9ac9ea9e1ff3ff1a77339f81d5925e3711a395f585c07ce1db83151369407d373208b3dd3869f660c52c68da2a0b9adfca486690e020f1977e930757b8ba
|
@@ -7,9 +7,9 @@ module ActiveRecord
|
|
7
7
|
# ActiveRecord 3.2 vs sqlite, maybe others ...
|
8
8
|
if base.method_defined?(:exec_query)
|
9
9
|
alias_method :exec_query_without_comment, :exec_query
|
10
|
-
def exec_query(query, *args, &block)
|
10
|
+
def exec_query(query, *args, prepare: false, &block)
|
11
11
|
query = ActiveRecord::Comments.with_comment_sql(query)
|
12
|
-
exec_query_without_comment(query, *args, &block)
|
12
|
+
exec_query_without_comment(query, *args, prepare: prepare, &block)
|
13
13
|
end
|
14
14
|
|
15
15
|
# 99% case
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|