obfuscated 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/obfuscated.rb +8 -0
  2. metadata +3 -3
data/lib/obfuscated.rb CHANGED
@@ -36,6 +36,14 @@ module Obfuscated
36
36
 
37
37
  end
38
38
  end
39
+
40
+ def find( primary_key )
41
+ if primary_key.is_a?(String) && primary_key.length == 12
42
+ find_by_hashed_id( primary_key )
43
+ else
44
+ super
45
+ end
46
+ end
39
47
 
40
48
  end
41
49
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obfuscated
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Collier