temping 3.7.0 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/temping.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d297c668b6ddd40b5fc1a9dbc1c3dafa5ed857f7
4
- data.tar.gz: 095e12f701f42da7dc7df06379a9e92783e787c0
3
+ metadata.gz: d63dd44c5b3e2bd44019de705433792a570b1280
4
+ data.tar.gz: 6ebf2f18c8cdbb6c065436a297936b8ed7ab46c7
5
5
  SHA512:
6
- metadata.gz: 83b9b9254af227cf503910abad598a44223805572f5e0e8b1f7ef65345f499ff2303545afa47e5999f6173dcb266fa79d6dcf553cfedb0148153fddcc986d011
7
- data.tar.gz: 4b50f86b1763bbc39681e9acfa01e0c3594550c979b8d3b809ddcedcd05ad0181e2a111d8fba41a003ccd41641bfc10315ff3e1852129039c5bccf965b88f5c0
6
+ metadata.gz: 0cd6f6e83066aa85ed5c2a860b21bc478b8dc05f9a331ade75c046e3867c9898461ccd06b743f7855f2c3a3d3be41a2aa65e0e36c7e229e36abe77e87bd61194
7
+ data.tar.gz: c81c953fd01805e8db09f87b6288615eb762e517ca6fe80a6b66af1dd1eda5526103c0118f080ecf4b16047b833bf22bc4e731955d513898728fff4e33ad0b03
@@ -50,7 +50,7 @@ class Temping
50
50
  Class.new(model_parent_class).tap do |klass|
51
51
  Object.const_set(@model_name, klass)
52
52
 
53
- klass.primary_key = :id
53
+ klass.primary_key = @options[:primary_key] || :id
54
54
  create_table(@options)
55
55
  add_methods
56
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: temping
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Pignata