pupper 0.1.12 → 0.1.13

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: 9bb76ad4baa781c859f5e44c9bd1cc5c3fc20df2
4
- data.tar.gz: 88d6cfb37ab191e0a8009eb65e4591f7a9ca3698
3
+ metadata.gz: 29be9877392eb7b418e0471bb3e589e62d84da40
4
+ data.tar.gz: 15a0e0fd07d4bc4e3d96e4e5969b669e48b84482
5
5
  SHA512:
6
- metadata.gz: 3b337dd0df120eb2f7404a15e53b47da9352aab8f293d8d445d93dcf04c822a3ce671b66f7d405c7b977686759f2165b4d3e85ed2e6e291b90419d0156000cdb
7
- data.tar.gz: ecfd6210ca089697ee04bfc47aa15da54fa4ca4a51eb2c0ac8f192a24615eaeca3b70f163c76d93c5ad9f05d8cb42c3b07b14d21e0408118723d42b7257550c2
6
+ metadata.gz: c21bfda8117276e99c317c894dbf654d1bf5739b5efed282778fff0c7ad8188ea68f57feb60401a079c4e84762103220f5d1ac7c825b60b527582168508072c1
7
+ data.tar.gz: d19488aaa84819d780dac2f83d762b1a52e5f67154f875ae615b2159d605c8d5f0999ac7649d57ea1193183fb13dc6c349119344c6752702114211594ee6e9f1
@@ -69,7 +69,8 @@ module Pupper
69
69
  when :has_many
70
70
  assocs[name] = create_has_many_assoc_model(name, value)
71
71
  else
72
- assocs[:"#{name}_#{foreign_key}"] = value
72
+ name = foreign_key.present? ? "#{name}_#{foreign_key}" : name
73
+ assocs[name.to_sym] = value
73
74
  end
74
75
  end
75
76
 
@@ -1,3 +1,3 @@
1
1
  module Pupper
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Machin