activerecord_bulkoperation 0.2.1 → 0.2.2

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: 89ea73e438d44f7bd6d0b78b995057bc05254b19217d9fdf907c5938fee06e87
4
- data.tar.gz: ca64781fe00476635ba2dc008c28557c6879d0512f01951077cdb1eafa2b8b27
3
+ metadata.gz: 2735a535f8978583510c6079c0cc148f1b9a54fe00e56069700b14a1e610cbd6
4
+ data.tar.gz: 438a9abd06927a197a81f8989fc71918d50d165e0d4a4e30a8257007a649468d
5
5
  SHA512:
6
- metadata.gz: 36859893c2c10556528b14302dc876defe26d694dc0ca3de6bd93fc1f8a620088d9c65751f2daf7395a66659ad0d0d0cf65c747fbc1fd729f06e3a4930abdf37
7
- data.tar.gz: 665db719f1d4bb3cbcbb2910297d2c7bc62fe60baa3e0150d98fda4fa8510e09471e6ed6febc94d94f6a897269b46ac1191a252a8e32eb35c0e5936e62f555ce
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 Rails.gem_version >= Rails.gem_version('6.0')
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 Rails.gem_version < Gem::Version.new('6.0')
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}
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bulkoperation
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord