prettyid 0.1.1 → 0.1.2

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: 0621c31030006467b9af257e9c679723d3375a6c6b21ca6b366174ec1ded4045
4
- data.tar.gz: aac1f8629e0a906bde5b57a8c2c36a6f4132bc4b6ab5e7152449110e254b6dd8
3
+ metadata.gz: d1b67ccbe04d5c451bc19bf075ab339ea2e9ad37c343e07e502731d4c493f9c8
4
+ data.tar.gz: dec40ffab0f1547b8c4b4feda8565cedbc38413fab8c4eadd21044a2f6bd385c
5
5
  SHA512:
6
- metadata.gz: cdd710ffb92b1d23cb243e2a7b059ba7bdb30503b7beb47fc66e65faec649399950706bba1a09c4d19683ce53870c59bc8b7cbc5d85444abe7215e27236fc46f
7
- data.tar.gz: 343367e6e582c809ed7ee31ef6ad166057a1eb99034266f65dd61d0e98063175ff7a93773657baca860454555e5caf13e31e5df95eb1757486fa5a903b311e11
6
+ metadata.gz: 9ed263be9a2feb3158ea0f18890401e9b3054cc3c2bb2980ba81bfd14312270241e56170372cec3ddf0d422631054a57d200d377cd1ace66e746cec2d905c1b6
7
+ data.tar.gz: 6b0116bc40e0e6187c3b6ae21d120e6d1079627f373099e0e38ca1db95ea5ae38c420e69b86d78baa822992028f3f67e8f42e6c40764d23fddab5fce9b4ceb0c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prettyid (0.1.0)
4
+ prettyid (0.1.2)
5
5
  activerecord (>= 4.2.0)
6
6
  activesupport (>= 4.2.0)
7
7
 
data/lib/pretty_id.rb CHANGED
@@ -7,7 +7,9 @@ module PrettyId
7
7
  extend ActiveSupport::Concern
8
8
 
9
9
  included do
10
- self.primary_key = 'id'
10
+ def self.primary_key
11
+ 'id'
12
+ end
11
13
  end
12
14
 
13
15
  class_methods do
@@ -1,3 +1,3 @@
1
1
  module PrettyId
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prettyid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Gabriel