activerecord_bulkoperation 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2735a535f8978583510c6079c0cc148f1b9a54fe00e56069700b14a1e610cbd6
|
|
4
|
+
data.tar.gz: 438a9abd06927a197a81f8989fc71918d50d165e0d4a4e30a8257007a649468d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 101d242de66ba767fbe498e475c404303a71430546cd4ebf1330398afe5e45a4ac9429ca57526b535dcad51632b89f16472bbb6ba1e4f415a6640cbda314b012
|
|
7
|
+
data.tar.gz: d3f1816e0cdf4854cfa665a72320b2e388bf0b73902228e3160db688eddac9e1bd4ce0b33066ffdab0a1334c71392cee1a2df5603a81a3bb681b4030bf6dcdfb
|
|
@@ -12,7 +12,7 @@ module ActiveRecord
|
|
|
12
12
|
record
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
if
|
|
15
|
+
if ActiveRecord.gem_version >= Gem::Version.new('6.0')
|
|
16
16
|
alias_method :instantiate_instant_of_without_save_original, :instantiate_instance_of
|
|
17
17
|
|
|
18
18
|
def instantiate_instance_of(klass, attributes, column_types = {}, &block)
|
|
@@ -164,7 +164,7 @@ module ActiveRecord
|
|
|
164
164
|
|
|
165
165
|
class JoinBase
|
|
166
166
|
attr_accessor :cached_record
|
|
167
|
-
if
|
|
167
|
+
if ActiveRecord.gem_version < Gem::Version.new('6.0')
|
|
168
168
|
def extract_record(row,column_names_with_alias)
|
|
169
169
|
# if the :select option is set, only the selected field should be extracted
|
|
170
170
|
# column_names_with_alias.inject({}){|record, (cn, an)| record[cn] = row[an] if row.has_key?(an); record}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord_bulkoperation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OSP
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|