uuid_associations-active_record 0.3.1 → 0.3.2

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: c995c046ef0be0f3b711654edcda1b8beaa005c20114c221196c112e60908140
4
- data.tar.gz: a7296028dc5b9ce6c48884ec9c34baffe72523aa770d13cca785f77393ea562e
3
+ metadata.gz: cc4dca3626a286c4c6048fd1dd954d638940f118ce985653085d70065e4dd19a
4
+ data.tar.gz: 622fa1cda9689a44e7b46683c14535982d0aabe72af8faf6ee66c1106468d0df
5
5
  SHA512:
6
- metadata.gz: 6261c2250b8201c8530732e09bcdafffd40f08f4e18a970c89c75adf69f0321944eabfb0194ae73027a61106d27cc7b140c6868a62a757e5c7bec3b7701ae7eb
7
- data.tar.gz: d0d2d8dd24b7c3ed82cbb3138f710c635519f45560acdd8e0a12996e5a5126b59aa01d8de9cd5ecb6493796f1ee18f0b4da7cba2d8efc78a6ddb35a49bf24aba
6
+ metadata.gz: ec7e00fb8ac08c0de6ecf62961c6025c48089cc4e98c390e1d98c7d6436a5feb4b87d2eaa4049e4be56be7b6021ae756baef7e0c42d5c69cc4dd7d32848956d5
7
+ data.tar.gz: 7c5c2cf86ee98f13d5610083fffa27b2adeeab05372e91895058873620e302c74797ac86f4682238c0f63a9ac31cdf2afbf750f6a0f889e424b07b4c1e3e3760
@@ -34,6 +34,8 @@ module UuidAssociations
34
34
  end
35
35
 
36
36
  def uuid_column?(association_class_name)
37
+ return false unless ::ActiveRecord::Base.connected?
38
+
37
39
  table_name = table_name_from_class_name(association_class_name)
38
40
  return false unless ::ActiveRecord::Base.connection.tables.include?(table_name)
39
41
 
@@ -1,5 +1,5 @@
1
1
  module UuidAssociations
2
2
  module ActiveRecord
3
- VERSION = '0.3.1'.freeze
3
+ VERSION = '0.3.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_associations-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Celi