uuid_attribute 0.9.1 → 0.9.2
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 +2 -3
- data/lib/uuid_attribute/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '044226208a5f82b69965d3614d69e8498d275ba54a8f74a2df5710bdaee8ed81'
|
4
|
+
data.tar.gz: b52bbb3dc7f2ba502e6ea59e9524903e0ffde4bddb57aec9f9fa2f1615ddd1bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef05bd5a47da6b30efc5257914b18f7b48796f2f054635f522e83e269f7c3479bc38ebcaed0f929f47d87c489078be3a13a94fd52f14122a652c5cb86e74067
|
7
|
+
data.tar.gz: 839cfd50e258caf09be260ef060efafd57d27cdcf5a461f044173ddc0f1ced698d34cba136d3b2ec32c1ac6beddadd57f3a006db5f7fe0ab09a0025e0fcd7046
|
@@ -51,16 +51,15 @@ module UuidAttribute
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
rescue ActiveRecord::NoDatabaseError
|
54
|
-
puts "NO DATABASE"
|
55
54
|
false
|
56
55
|
else
|
57
|
-
puts "CONFIGURE BINARY"
|
58
56
|
true
|
59
57
|
end
|
60
58
|
end
|
61
59
|
|
62
60
|
config.after_initialize do
|
63
|
-
|
61
|
+
return if ARGV.include? "assets:precompile"
|
62
|
+
|
64
63
|
ActiveRecord::Type.register(:uuid, ::UuidAttribute::UUID)
|
65
64
|
|
66
65
|
configure_binary_ids if UuidAttribute.auto_detect_binary_ids
|