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: 4a76c496fde5150801ae8376a7ca62cae2601a02f3f3fcd95be8b3bcbd876727
4
- data.tar.gz: 20875accc2da7dcb9568411681c35210fa83726b6da9aac6d22fd234283a3f49
3
+ metadata.gz: ad8e12409db6681e383f1f14293a113dc6fcbbc0039b76de7dd7043fe7e9c059
4
+ data.tar.gz: 3607904c6fcb0101fc9ea669bd40be5e1f91342b9be9d1c497689cc4023346b4
5
5
  SHA512:
6
- metadata.gz: 855b507aeecdced9e9c52b089fd40b973bc90c34a42b6c48f3a4484661d836b4bb7282cf31a7c32774e6e384359082cc7f3ecbc85ff28300d04666106958cf1e
7
- data.tar.gz: aaf14ebac79e0452dc5ff3c4e95098ebb9415833f6e00deb53d4914cf803a4ff4d215a8094f5ce0a1419524811affc7207a71f589d00c32537ab784b2d82f16a
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Comments
3
- VERSION = "0.4.0"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.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-07-05 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord