revo-cache_fu 1.1.1 → 1.2.0

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.2.0
data/cache_fu.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cache_fu}
8
- s.version = "1.1.1"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chris Wanstrath"]
@@ -35,6 +35,9 @@ module ActsAsCached
35
35
  if find_by = options.delete(:find_by)
36
36
  options[:finder] = "find_by_#{find_by}".to_sym
37
37
  options[:cache_id] = find_by
38
+ elsif find_by = ActsAsCached.config[:find_by]
39
+ options[:finder] = "find_by_#{find_by}".to_sym
40
+ options[:cache_id] = find_by
38
41
  end
39
42
 
40
43
  cache_config.replace options.reject { |key,| not Config.valued_keys.include? key }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revo-cache_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath