rescue_unique_constraint-cadetstar 1.6.2 → 1.6.3

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: 39cbeb8736e8dba203820bdf7b36693d5ca090197a2aa930f4b4f4243fd36d71
4
- data.tar.gz: c3ff4b10d884deedad7a244a48715dc37f39fdd4442f5a9b390f0bfa341e4011
3
+ metadata.gz: b4297629f2d719077d3c950e9db7c1b7d6ddbbd1e64d6bb0dba217f556aaa627
4
+ data.tar.gz: 58242cb76741a5b06d188b0e0904d4d848dc9824b368ce4c9dae7ec2aafdf903
5
5
  SHA512:
6
- metadata.gz: 151599c75bf4cee1a71c4bf167c4b271b0beebfd52d2a26b6a80c700ceaaa74df87b82b7e23d005ba241e3d66df1477751216b516556385c6c093f5eaf9e4a51
7
- data.tar.gz: 1c33be63da79cc351da4d388ad4979b7fd6077322154dbd0f1944435cf181137472fbaf92f09408b6664c1f23f5378d7fd4c1da9e8f8815d82ad5167ab12563d
6
+ metadata.gz: d7e563a08fd1f86f4f76a4233fd559644beebb10a0faf8d19cdd8e6a1dbb5a2deace76fcf829c7ebd700374c9739361195cadc69eb7de0e05d7a5d0fd8c71042
7
+ data.tar.gz: bba2ef2ca55db4ecd755312918e0110b5ad7679aa065b20157b408de3eba24fa6d9502eac03dc4a628f690f55ba756d22942522f0ac74ab04a03709741ab16d8
@@ -28,7 +28,7 @@ module RescueUniqueConstraint
28
28
  rescue ActiveRecord::RecordNotUnique => e
29
29
  self.class.index_rescue_handler.matching_indexes(e).each do |matching_index|
30
30
  if matching_index.scope
31
- errors.add(matching_index.field, :taken, scope: matching_index.scope)
31
+ errors.add(matching_index.field, :taken, unique_scope: matching_index.scope)
32
32
  else
33
33
  errors.add(matching_index.field, :taken)
34
34
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RescueUniqueConstraint
4
- VERSION = "1.6.2"
4
+ VERSION = "1.6.3"
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.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tam Dang