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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4391aedd96215a7827897d233a988b61f8902abd5386ec56d9c242acf1541593
4
- data.tar.gz: 9d62caede1fd48735913e6dfcdfe7bb4cbd36ef151ec4eb416c74f1cc6233b1b
3
+ metadata.gz: 72d04de25e1451d8d20da7c3c9bdc6615761cfb2f900fe01c03e487c6f1bac12
4
+ data.tar.gz: e9f76cc58730887fbc69e7a680b0ac6453e6ed09869c0d76707a0d005dcae24d
5
5
  SHA512:
6
- metadata.gz: 9adf89495017230161cb481948f8096eb39f2e899c3b341ce6f6c81ff840e0ecdfb9358528ea8dc2cfcf2ae1e5941eb23c9bfe993270f02401e27790b73f605e
7
- data.tar.gz: 3dba3afd0604bbb60eb6ceaf62fd0e0f547e5f966edf6be788b7da687a4657ead791afbb2bf9da64262ed8d1c5471b7c5af0b6a3b85c29e10ac870e0dcbefbe8
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, ".*").classify
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(&:constantize)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidAttribute
4
- VERSION = "0.9.10"
4
+ VERSION = "0.9.11"
5
5
  end
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.10
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-04-17 00:00:00.000000000 Z
11
+ date: 2023-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel