Commit 49a3fa5a0bcd3f895f6abee440b86d604abc46a2
1 parent
c8314e08
Exists in
staging
and in
42 other branches
Removing calls to deprecated method
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/noosfero/i18n.rb
| ... | ... | @@ -137,14 +137,14 @@ module ActionController::Caching::Fragments |
| 137 | 137 | key = fragment_cache_key_without_fast_gettext(name) |
| 138 | 138 | if key.is_a?(Regexp) |
| 139 | 139 | self.class.benchmark "Expired fragments matching: #{key.source}" do |
| 140 | - fragment_cache_store.delete_matched(key, options) | |
| 140 | + cache_store.delete_matched(key, options) | |
| 141 | 141 | end |
| 142 | 142 | else |
| 143 | 143 | key = key.gsub(/:/, ".") |
| 144 | 144 | self.class.benchmark "Expired fragment: #{key}, lang = #{FastGettext.available_locales.inspect}" do |
| 145 | 145 | if FastGettext.available_locales |
| 146 | 146 | FastGettext.available_locales.each do |lang| |
| 147 | - fragment_cache_store.delete("#{key}_#{lang}", options) | |
| 147 | + cache_store.delete("#{key}_#{lang}", options) | |
| 148 | 148 | end |
| 149 | 149 | end |
| 150 | 150 | end | ... | ... |