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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf5a38b8539658e9c09324012523352fe70270da57cadbaa791751d5f7e330d6
4
- data.tar.gz: a8d413da91863109bea5648a66d683b11535b7a9c9be82746d8a86cf20da443c
3
+ metadata.gz: 01b7d60e6dba2eb66121918d5729a9556a0402e9e498bc3c3a37d752b70a8dce
4
+ data.tar.gz: a0b386585c6d2113abea9e25b99fed62c0fc39157332b7275949219190f6d3aa
5
5
  SHA512:
6
- metadata.gz: 5194cc147fbd4a758e365492fed7005fb1f87c29287e458f7f31070f8bb506a469f3403e2cda0ac4260126c691eaf58d1fea78fb5683f874e6371b81387cd0cc
7
- data.tar.gz: c4326f6bcd671f8b7906f097d8510e1fd639b2d76407c1a6520d1f4b6fcb22613b5ab0c79fefeec9c1173cd90c1ef14b8abc75dbd654706989b2346b33888bd2
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 , value)
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
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordUUIDOrder
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-uuid-order
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb