uuid_attribute 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uuid_attribute/railtie.rb +5 -2
- data/lib/uuid_attribute/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d04de25e1451d8d20da7c3c9bdc6615761cfb2f900fe01c03e487c6f1bac12
|
4
|
+
data.tar.gz: e9f76cc58730887fbc69e7a680b0ac6453e6ed09869c0d76707a0d005dcae24d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4b31bb6e0ee8306ea6a8413e3f815c5a2ddb87964339183c944f921b7ba605c8f266672efea8210c2851d84198f18b3c5b1db94617745d4023ddf7062cf9a8
|
7
|
+
data.tar.gz: b3e18587ba0e177a66629dbe6a794f33497d33b2eba80701ecf4f668fa91860286a0d19523012fccfb38009dccc3a0b6f2738e733a9a385259957904df3524be
|
@@ -26,7 +26,7 @@ module UuidAttribute
|
|
26
26
|
def list_models
|
27
27
|
models = []
|
28
28
|
Dir["#{Rails.root}/app/models/*"].each do |file|
|
29
|
-
model = File.basename(file, ".*").
|
29
|
+
model = File.basename(file, ".*").camelcase
|
30
30
|
models << model unless models.include?(model)
|
31
31
|
end
|
32
32
|
|
@@ -39,7 +39,10 @@ module UuidAttribute
|
|
39
39
|
rescue
|
40
40
|
end
|
41
41
|
|
42
|
-
models.each
|
42
|
+
models.each do |m|
|
43
|
+
Object.const_get(m)
|
44
|
+
rescue NameError
|
45
|
+
end
|
43
46
|
all_active_record_classes
|
44
47
|
end
|
45
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuid_attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Negri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|