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 +4 -4
- data/lib/carload/dashboard.rb +2 -3
- data/lib/carload/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff22a6684193d3260d0c364a034f2e3fc5f41871
|
4
|
+
data.tar.gz: f4d5c92e4c6d469982c5582b217a5d6bfd6e8055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46ad15299795918e1e24bfbc17044083339316d844f5efdc2b6f74c2b9dcefb94e8d3a78fcda937d16e6d2c8686a64c55ea9fd02d99549d69e065f0737b414c5
|
7
|
+
data.tar.gz: 7a573e700e86417e212caa46ec9ed20d739bd7a7f755dc4b1c792b2f42aab4eb459c1a5ff5d80d42c36f78941a663b614115044f7fcde7b93265e27124720217
|
data/lib/carload/dashboard.rb
CHANGED
@@ -48,11 +48,10 @@ module Carload
|
|
48
48
|
RUBY
|
49
49
|
default = false
|
50
50
|
next if spec.associations.empty?
|
51
|
-
spec.associations.
|
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 =>
|
54
|
+
associate(#{{ name.to_sym => association_name, choose_by: association[:choose_by] }})
|
56
55
|
RUBY
|
57
56
|
end
|
58
57
|
end
|
data/lib/carload/version.rb
CHANGED