trax_model 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trax/model/unique_id.rb +10 -0
- data/lib/trax_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c006d0d9afaebfa07ac07801d585a987e39292c
|
4
|
+
data.tar.gz: f6e2b7f70e5d7db1d530dd0d8f9699459843fae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7522248edd39ccaceaab581f7c3440a3073b1af2840bc2305e7f7ca4f916d1efd296ba4986ac7ce29fa5bba06f9fb0e75e1c50f0c2a5db6533831be3f1a97b41
|
7
|
+
data.tar.gz: f784118f67383dda766e1d95c2b1518046f4342a5584ab0d41ab289b4b2b4cbcb83db40a4fabb6fa711e3e0372d40da37623551d210b9af99530b998b6192b42
|
data/lib/trax/model/unique_id.rb
CHANGED
@@ -15,6 +15,16 @@ module Trax
|
|
15
15
|
::Trax::Model::UUID.new(super)
|
16
16
|
end
|
17
17
|
|
18
|
+
#i.e, Blog::Post will = post
|
19
|
+
def uuid_type
|
20
|
+
uuid.record_type.name.demodulize.underscore
|
21
|
+
end
|
22
|
+
|
23
|
+
#i.e. Blog::Post
|
24
|
+
def uuid_type_full
|
25
|
+
uuid.record_type.name
|
26
|
+
end
|
27
|
+
|
18
28
|
module ClassMethods
|
19
29
|
delegate :uuid_prefix, :to => :trax_defaults
|
20
30
|
delegate :uuid_column, :to => :trax_defaults
|
data/lib/trax_model/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trax_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Ayre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trax_core
|