activerecord-uuid-order 0.5.0 → 0.6.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 +5 -3
- 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: 01b7d60e6dba2eb66121918d5729a9556a0402e9e498bc3c3a37d752b70a8dce
|
4
|
+
data.tar.gz: a0b386585c6d2113abea9e25b99fed62c0fc39157332b7275949219190f6d3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 587bbeebab47328aef85d644d2a917d241152426bdb2840d06f98a3d496105c2e23f3523077fefae748a9d6ad44b82bb30a835c98d000d201ad2dc64b43b22af
|
7
|
+
data.tar.gz: f86ec7600a23a66bb2eafa667393b3f0696e9fe76194f6842bd42e4185bd09d2b92cdd0a512a140bc70e0cd630175f1dab8e538086fa350d5179635ba407262b
|
@@ -2,13 +2,15 @@ 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
|
+
|
5
9
|
def implicit_order_column=(value)
|
6
|
-
class_variable_set(:@@implicit_order_column
|
10
|
+
class_variable_set(:@@implicit_order_column, value)
|
7
11
|
end
|
8
12
|
|
9
13
|
def implicit_order_column
|
10
14
|
class_variable_get(:@@implicit_order_column)
|
11
|
-
rescue NameError
|
12
|
-
nil
|
13
15
|
end
|
14
16
|
end
|