diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-11-20 15:30:40 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-11-20 15:30:40 +0000 |
commit | 766da660994dbe7c86f556d9cf863411814622fe (patch) | |
tree | 9adc0ef695cb076216e8ebb15ab29b56ef9bbf15 /app/helpers/application_helper.rb | |
parent | 8b4003f7fce9e089f2220e6f1a21681f7cf2df3d (diff) | |
parent | 21f4341619ae1b076521e04f2124ef86fd2b7b5f (diff) |
Merge remote-tracking branch 'origin/develop' into wdtk
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ab953cb25..5c856383b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -77,25 +77,6 @@ module ApplicationHelper return LanguageNames::get_language_name(locale) end - # Use our own algorithm for finding path of cache - def foi_cache(name = {}, options = nil, &block) - if @controller.perform_caching - key = name.merge(:only_path => true) - key_path = @controller.foi_fragment_cache_path(key) - - if @controller.foi_fragment_cache_exists?(key_path) - cached = @controller.foi_fragment_cache_read(key_path) - output_buffer.concat(cached) - return - end - - pos = output_buffer.length - content = block.call - @controller.foi_fragment_cache_write(key_path, output_buffer[pos..-1]) - else - block.call - end - end # (unfortunately) ugly way of getting id of generated form element # ids # see http://chrisblunt.com/2009/10/12/rails-getting-the-id-of-form-fields-inside-a-fields_for-block/ |