carload 0.5.0 → 0.5.1

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: 189b67589521f80841e31c1d6b88faf83808fdcb
4
- data.tar.gz: 48ba545a059e0dcd99778f25364dd3a406a9b5aa
3
+ metadata.gz: ff22a6684193d3260d0c364a034f2e3fc5f41871
4
+ data.tar.gz: f4d5c92e4c6d469982c5582b217a5d6bfd6e8055
5
5
  SHA512:
6
- metadata.gz: 768362151f2686fc48f7f5573f63e40b599bdbfc5bf2c6a3ef93268004c9702150c51ad9ce577498aacccd6f3e520c35b7bf6d0b81cb0139c4f52d14f1a00329
7
- data.tar.gz: e4fa219c45c59ecda87d186cd3353cf5406ccf89f21c68885e0fa77c0890b25e0e5d41af809f1a7b1adf7fafe537dbb9fc45cb6eeb0519e9ea3b24056af22db5
6
+ metadata.gz: 46ad15299795918e1e24bfbc17044083339316d844f5efdc2b6f74c2b9dcefb94e8d3a78fcda937d16e6d2c8686a64c55ea9fd02d99549d69e065f0737b414c5
7
+ data.tar.gz: 7a573e700e86417e212caa46ec9ed20d739bd7a7f755dc4b1c792b2f42aab4eb459c1a5ff5d80d42c36f78941a663b614115044f7fcde7b93265e27124720217
@@ -48,11 +48,10 @@ module Carload
48
48
  RUBY
49
49
  default = false
50
50
  next if spec.associations.empty?
51
- spec.associations.each_value do |association|
51
+ spec.associations.each do |association_name, association|
52
52
  next unless association[:choose_by]
53
- reflection = association[:reflection]
54
53
  content << <<-RUBY
55
- associate(#{{ name.to_sym => reflection.name, choose_by: association[:choose_by] }})
54
+ associate(#{{ name.to_sym => association_name, choose_by: association[:choose_by] }})
56
55
  RUBY
57
56
  end
58
57
  end
@@ -1,3 +1,3 @@
1
1
  module Carload
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Li Dong