activerecord-uuid-order 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord-uuid-order.rb +2 -4
- data/lib/activerecord-uuid-order/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: 166a0e6b8e7e1f006e5dbf5a5fbcd21cf5c7bf9cdf44f36fe15e2ca709be5c09
|
4
|
+
data.tar.gz: 32481ea773a003c513abdfe25a8bf9a8e58c3c2f3b6d7e96081ce0c03089d5b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9120339871ac9258d8757dd89869b9c93d254e44a8d535070ef206a5bd4f9a079765fcc0e74b15a5a8c4bceaef57b18643c638d581b5c5093e46e9aa74f4e4d4
|
7
|
+
data.tar.gz: 7ce198f89717f47943a31ad888d21dcb58fec6f2ef8f1034c578df89d76420afc77ec0399d615fc8fd02ddf37e71c39a0dd2c4d45e585be32a9c19a07f0057ef
|
@@ -2,15 +2,13 @@ require 'activerecord-uuid-order/version'
|
|
2
2
|
require 'activerecord-uuid-order/core_extensions'
|
3
3
|
|
4
4
|
module ActiveRecordUUIDOrder
|
5
|
-
def self.included(base)
|
6
|
-
base.class_variable_set(:@@implicit_order_column, nil)
|
7
|
-
end
|
8
|
-
|
9
5
|
def implicit_order_column=(value)
|
10
6
|
class_variable_set(:@@implicit_order_column, value)
|
11
7
|
end
|
12
8
|
|
13
9
|
def implicit_order_column
|
14
10
|
class_variable_get(:@@implicit_order_column)
|
11
|
+
rescue NameError
|
12
|
+
class_variable_set(:@@implicit_order_column, nil)
|
15
13
|
end
|
16
14
|
end
|