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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72afe4ed91e48868ae5965523a0ece32221a2a42
4
- data.tar.gz: 29e28997f27539058bf5a7e131d13cef8696608e
3
+ metadata.gz: 2c006d0d9afaebfa07ac07801d585a987e39292c
4
+ data.tar.gz: f6e2b7f70e5d7db1d530dd0d8f9699459843fae6
5
5
  SHA512:
6
- metadata.gz: f4e3d8332d31fbabdca1318bf3a504e775e9c1b080df5cd7de76150bdcf24b508786c5c5d2767da8628f933b32b9cb980fe54a9dcb659701a653c0ee3b57b919
7
- data.tar.gz: 06619d0356c3b86ffd769c4410be2e59e40838ca6d0af1a60e8c88f40d113e0775dd95c3a6caf4499c29b8fa800bbc94efd0684e5434bdcc5e5e4e0a81f091a1
6
+ metadata.gz: 7522248edd39ccaceaab581f7c3440a3073b1af2840bc2305e7f7ca4f916d1efd296ba4986ac7ce29fa5bba06f9fb0e75e1c50f0c2a5db6533831be3f1a97b41
7
+ data.tar.gz: f784118f67383dda766e1d95c2b1518046f4342a5584ab0d41ab289b4b2b4cbcb83db40a4fabb6fa711e3e0372d40da37623551d210b9af99530b998b6192b42
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TraxModel
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
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.3
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-07 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trax_core