garner 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module Garner
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- after_create :invalidate_api_cache_for_class
8
+ after_create :invalidate_api_cache
9
9
  after_update :invalidate_api_cache
10
10
  after_destroy :invalidate_api_cache
11
11
  cattr_accessor :api_cache_class
@@ -34,6 +34,7 @@ module Garner
34
34
  while obj.metadata && obj.embedded?
35
35
  # FIXME: This is not a robust check for cycles
36
36
  break if docs.detect { |doc| doc.class == obj.class }
37
+ break unless obj.metadata.inverse
37
38
  parent = obj.send(obj.metadata.inverse)
38
39
  break unless parent
39
40
  docs << parent
@@ -1,3 +1,3 @@
1
1
  module Garner
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-16 00:00:00.000000000 Z
13
+ date: 2013-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -280,7 +280,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
280
280
  version: '0'
281
281
  segments:
282
282
  - 0
283
- hash: -971041197
283
+ hash: -1943683014266943396
284
284
  required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  none: false
286
286
  requirements: