revo-cache_fu 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cache_fu.gemspec +1 -1
- data/lib/acts_as_cached.rb +3 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/cache_fu.gemspec
CHANGED
data/lib/acts_as_cached.rb
CHANGED
@@ -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 }
|