active_any 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bce4c099011efca225f189fd83ea2cca319d59b
4
- data.tar.gz: 8b696b3147b302128b675d11358a12deb8bb94ad
3
+ metadata.gz: f55edfb43e9d81dba6c9b0614b34db3b2ffe2f6b
4
+ data.tar.gz: 7520decd1d49bf940da804fe42ca899f5644c73c
5
5
  SHA512:
6
- metadata.gz: 3c90267f62743a6472b16da2f165acdd26e8b7a71e83bbd9fea34de3e3edb3ef376afc9957baaf018d8ba60e24b1d1eadda2b98833fe013cc728a6a47b5d0aad
7
- data.tar.gz: b36851cd8b79fda86ee9cbebd1460239a2ad0b2237b2aec22d46ff0c5d4a596aa5e45dfa898ee6ec634a8cba7f04ae60d9af0a114c1c605fd9671abcad75aba2
6
+ metadata.gz: 4679db223ffd527f341392d69e4adff8ba0524c4c5441cc116864497e6c37c7f525d78660075c48db29e08e05dccfb7d4e60e11d719accb12ddb9a129830bd44
7
+ data.tar.gz: 672f685c5c891eb4b49f36a6335813dfa89c17e0a78471c6aace41a94f51b3adc08483d72497b1c27a2b418dd9d04de9ad0c3cb2cfc1378843fb38a122efabe3
@@ -62,12 +62,16 @@ module ActiveAny
62
62
  super
63
63
  end
64
64
 
65
+ def association_cache
66
+ @association_cache ||= {}
67
+ end
68
+
65
69
  def association_instance_get(name)
66
- @association_cache[name]
70
+ association_cache[name]
67
71
  end
68
72
 
69
73
  def association_instance_set(name, association)
70
- @association_cache[name] = association
74
+ association_cache[name] = association
71
75
  end
72
76
  end
73
77
  end
@@ -22,7 +22,7 @@ module ActiveAny
22
22
  end
23
23
 
24
24
  def self.create_reflection(klass, name, scope, options)
25
- if scope.is_a?(Hash)
25
+ if scope.is_a?(::Hash)
26
26
  options = scope
27
27
  scope = nil
28
28
  end
@@ -44,7 +44,7 @@ module ActiveAny
44
44
  end
45
45
 
46
46
  def merge!(other) # :nodoc:
47
- if other.is_a?(Hash)
47
+ if other.is_a?(::Hash)
48
48
  Relation::HashMerger.new(self, other).merge
49
49
  elsif other.is_a?(Relation)
50
50
  Relation::Merger.new(self, other).merge
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveAny
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_any
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuemori