attribution 0.7.0 → 0.7.1
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/version.rb +1 -1
- data/lib/attribution.rb +11 -1
- data/test/attribution_test.rb +1 -3
- 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: 12444834b2a05df15ec10e3841f3fd0ef9ae2f83
|
4
|
+
data.tar.gz: 3f49033c574560af94cb1052ca833661c2801bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c463c0d115207d3fae0c8b3ea00c6faaeea0e15c33f4c8a8700bd4f13fefa1f05e9adfcf883b840063e93db5eea2c573ad2d45c2dd5599fc70a0446622788701
|
7
|
+
data.tar.gz: 3153c9287a83a0b64b75982b1ab520dec38da9d46a251fda1a7bcb50618146f8b788c6338082d76ac3aedab4a1ac50cefd49cb464ad29eb6161631fa4e998634
|
data/attribution.gemspec
CHANGED
data/lib/attribution/version.rb
CHANGED
data/lib/attribution.rb
CHANGED
@@ -197,8 +197,18 @@ module Attribution
|
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
200
|
+
def autoload_associations(autoload_associations)
|
201
|
+
@autoload_associations = autoload_associations
|
202
|
+
end
|
203
|
+
|
200
204
|
def autoload_associations?
|
201
|
-
|
205
|
+
if defined? @autoload_associations
|
206
|
+
@autoload_associations
|
207
|
+
elsif superclass && superclass.respond_to?(:autoload_associations?)
|
208
|
+
superclass.autoload_associations?
|
209
|
+
else
|
210
|
+
true
|
211
|
+
end
|
202
212
|
end
|
203
213
|
|
204
214
|
# Association macros
|
data/test/attribution_test.rb
CHANGED