acts_as_identifier 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_identifier/version.rb +1 -1
- data/lib/acts_as_identifier.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7d37c44af7c9196ea7fa5f5ec7b68dc3dcc95347ba4826eb4fab7bf466d3f98
|
4
|
+
data.tar.gz: b34c12b45f466b3f6bd3128374efb4c468a407f0df785b2008220a9bd8eb45cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13462dd9829c0f19c3baac3adb30e029f3ee821bcab99058579fd730eceaadc7c2b9cce57c198c905544ac5d0388c2258b619c13cb885918398f0e842e726d41
|
7
|
+
data.tar.gz: b0b55716bc29d0bf8963b8cf78f420ba2518e7dd4a019249f8155dc8f32ab39a44a106e1451f80881642f858f7e4eede5a9f6ba9df64fc6fa7efd35077fabd4a
|
data/lib/acts_as_identifier.rb
CHANGED
@@ -56,7 +56,7 @@ module ActsAsIdentifier
|
|
56
56
|
update_column attr, self.class.send("encode_#{attr}", send(id_column))
|
57
57
|
end
|
58
58
|
|
59
|
-
|
59
|
+
after_save :"acts_as_identifier__update_#{attr}", if: -> { previous_changes.key?(id_column.to_s) && !destroyed? }
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_identifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiaohui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xencoder
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.3.
|
85
|
+
rubygems_version: 3.3.7
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Auto-generate unique identifier value for Active Record
|