kasket 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module Kasket
15
15
  class Version
16
16
  MAJOR = 0
17
17
  MINOR = 7
18
- PATCH = 0
18
+ PATCH = 1
19
19
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
20
20
  end
21
21
 
@@ -1,12 +1,7 @@
1
1
  module Kasket
2
2
  module ReloadAssociationMixin
3
3
  def reload_with_kasket_clearing(*args)
4
- if loaded?
5
- Kasket.clear_local if include?(WriteMixin)
6
- else
7
- target_class = proxy_reflection.options[:polymorphic] ? association_class : proxy_reflection.klass
8
- Kasket.cache.delete_matched_local(/^#{target_class.kasket_key_prefix}/) if target_class.respond_to?(:kasket_key_prefix)
9
- end
4
+ Kasket.clear_local if include?(WriteMixin)
10
5
 
11
6
  reload_without_kasket_clearing(*args)
12
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kasket
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
  - Mick Staugaard