activerecord-uuid-order 0.4.0 → 0.5.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: cc3939df2035faeb35341a63027677c6da1095888b8df6c66f2966af863dea80
4
- data.tar.gz: 21bb923fce29d7361c34b8d6ce8c66c1a3d57b38e69ed5bf3845f890aa40b8aa
3
+ metadata.gz: bf5a38b8539658e9c09324012523352fe70270da57cadbaa791751d5f7e330d6
4
+ data.tar.gz: a8d413da91863109bea5648a66d683b11535b7a9c9be82746d8a86cf20da443c
5
5
  SHA512:
6
- metadata.gz: 4d2a5161cd91c83410d8cf4b15ab968e3d38f7a4f4009c3505c4f4c70fa3a9b3e735ef12d7a7aab7ff0132e50e6857a1f72aa7223635300020c56aaae030e274
7
- data.tar.gz: 28fbb4989c7be055b30fe128230e3542292e201b9d38a9c452e61fa032606e42e664febdba7df3711cfa9adb0210874a1535ecde380ec1268c99a1b379cc6019
6
+ metadata.gz: 5194cc147fbd4a758e365492fed7005fb1f87c29287e458f7f31070f8bb506a469f3403e2cda0ac4260126c691eaf58d1fea78fb5683f874e6371b81387cd0cc
7
+ data.tar.gz: c4326f6bcd671f8b7906f097d8510e1fd639b2d76407c1a6520d1f4b6fcb22613b5ab0c79fefeec9c1173cd90c1ef14b8abc75dbd654706989b2346b33888bd2
@@ -2,13 +2,13 @@ require 'activerecord-uuid-order/version'
2
2
  require 'activerecord-uuid-order/core_extensions'
3
3
 
4
4
  module ActiveRecordUUIDOrder
5
- @@implicit_order_column = nil
6
-
7
5
  def implicit_order_column=(value)
8
- @@implicit_order_column = value
6
+ class_variable_set(:@@implicit_order_column , value)
9
7
  end
10
8
 
11
9
  def implicit_order_column
12
- @@implicit_order_column
10
+ class_variable_get(:@@implicit_order_column)
11
+ rescue NameError
12
+ nil
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordUUIDOrder
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb