attribution 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/attribution.gemspec +1 -1
- data/lib/attribution.rb +1 -1
- data/lib/attribution/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: 87e85e249e4cf33c4188ac53fc9920613e503d6a
|
4
|
+
data.tar.gz: 4da999e16adcfa45572dbd58525387857ef62498
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c468e7ef528a1ca4ee2188238141ba795d9c8e6a57972828b8cee6a55c38af4cf07e3ea158e73296f28d4edc6f5b1a2d66df08d26e1a81694e311fda214fcbd
|
7
|
+
data.tar.gz: 7813df84bb4b4b8da04efe111aa3a6b5f3296540656fa91385f8da5457cdaddf363e443b805bd5de38ee38b6cc4c8353e79dfcda82201596f2e4ad4f2dbd0f41
|
data/attribution.gemspec
CHANGED
data/lib/attribution.rb
CHANGED
@@ -327,7 +327,7 @@ module Attribution
|
|
327
327
|
|
328
328
|
add_association association_name, :has_many, metadata
|
329
329
|
|
330
|
-
association_class_name = metadata.try(:fetch, :class_name, [name.split('::')[0..-2].join('::'), association_name.to_s.
|
330
|
+
association_class_name = metadata.try(:fetch, :class_name, [name.split('::')[0..-2].join('::'), association_name.to_s.classify].reject(&:blank?).join('::'))
|
331
331
|
|
332
332
|
# foos
|
333
333
|
define_method(association_name) do |*query|
|
data/lib/attribution/version.rb
CHANGED