rescue_unique_constraint-cadetstar 1.6.0 → 1.6.1

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: 133829749c4c9dd2bcc20628d6544147b7742b4aa389a3569457965f8ad87211
4
- data.tar.gz: 1c2f5b4eb84e18e0c44a49680678d0f25b70c807b55b40349c430018bf8f0c27
3
+ metadata.gz: '090487010e80ee9a50b4cebf1f4a946b89caee8c3ff145cdaa1d3de14bc26d0f'
4
+ data.tar.gz: 41dd9e44ee1e4583934122aed2099810fd4f069bc2a530ad4e17201eb3ead5f4
5
5
  SHA512:
6
- metadata.gz: 87bafb69b49d6265a0bb3e7fe84d7bcc44e546a08e4a9c380a55b60bc2686cb0e892e3a4f2cee62f259648bf3f25f85bd0878a11508374d779aa824ec17b77bc
7
- data.tar.gz: 822ba822132016b8a343957d65a6d94d2d2ff8cd9e3e3585fc67a4abd3e06a66fa3d20374292bbfd64a6aa189b9cfb58b7591c7acc32286d50128042bc747837
6
+ metadata.gz: c2863090de09745592934925d0b0e599f89c3b3b8cfb2ac3b708bfacc7f787d6a1fac5e9b485374db2e0cd0f42cd7c37e931c423960c2613f151f7abc17a8b49
7
+ data.tar.gz: 28cf4f0a798957de83ee833cfb56387c22968af6de8d880fe5c50bcda57bb05685c0e3ef1e823ed85fe55aa98babfe804da792569f9a4beb6e2133f60b3a8e1a
@@ -41,7 +41,7 @@ module RescueUniqueConstraint
41
41
  alias_method :create_or_update_without_rescue, :create_or_update
42
42
  alias_method :create_or_update, :create_or_update_with_rescue
43
43
  end
44
- index_rescue_handler.add_index(index, field)
44
+ index_rescue_handler.add_index(index, field, scope)
45
45
  end
46
46
  end
47
47
  end
@@ -1,7 +1,7 @@
1
1
  module RescueUniqueConstraint
2
2
  class Index
3
3
  attr_reader :name, :field, :scope
4
- def initialize(name, field, scope = nil)
4
+ def initialize(name, field, scope)
5
5
  @name = name
6
6
  @field = field
7
7
  @scope = scope
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RescueUniqueConstraint
4
- VERSION = "1.6.0"
4
+ VERSION = "1.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rescue_unique_constraint-cadetstar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tam Dang