attribution 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12280ee9715f6fab2bb30351d1bb4db0fb7ff3b8
4
- data.tar.gz: d90c899d05ae2475a49b4acd971041c2517b066f
3
+ metadata.gz: 12444834b2a05df15ec10e3841f3fd0ef9ae2f83
4
+ data.tar.gz: 3f49033c574560af94cb1052ca833661c2801bf8
5
5
  SHA512:
6
- metadata.gz: d896f36c33b15cf12912f07453dfadf4894e80044ed1e975f94ef8965a3d72a3f6fc8e1b55fa4208a0eb2eae8b67c4eb6b8ca6e6fc000363dbb5d601e32b5081
7
- data.tar.gz: 8ec63499d6ed0238ae23990fb5e3f5d89f1d3ee4ec48ee06839e4a72ab882c7b26aec3ccff48ec026bb860555b583d7c372a325625227469da020b41d5fe8fe3
6
+ metadata.gz: c463c0d115207d3fae0c8b3ea00c6faaeea0e15c33f4c8a8700bd4f13fefa1f05e9adfcf883b840063e93db5eea2c573ad2d45c2dd5599fc70a0446622788701
7
+ data.tar.gz: 3153c9287a83a0b64b75982b1ab520dec38da9d46a251fda1a7bcb50618146f8b788c6338082d76ac3aedab4a1ac50cefd49cb464ad29eb6161631fa4e998634
data/attribution.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "attribution"
5
- gem.version = "0.7.0"
5
+ gem.version = "0.7.1"
6
6
  gem.authors = ["Paul Barry"]
7
7
  gem.email = ["mail@paulbarry.com"]
8
8
  gem.description = %q{Add attributes to Ruby objects}
@@ -1,3 +1,3 @@
1
1
  module Attribution
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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
- true
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
@@ -130,9 +130,7 @@ end
130
130
  class StoreModel
131
131
  include Attribution
132
132
 
133
- def self.autoload_associations?
134
- false
135
- end
133
+ autoload_associations false
136
134
  end
137
135
 
138
136
  class Product < StoreModel
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Barry