Commit 26db3c33e4213510cc908eec52ff55032b8dd054
1 parent
6cfb4a8b
Exists in
master
and in
29 other branches
noosfero_caching: remove reference to unexisting class
ActionController::CgiResponse seems to be changed in Rails 2.3.5. Later we need to re-add the call to the cleanup method.
Showing
1 changed file
with
5 additions
and
7 deletions
Show diff stats
vendor/plugins/noosfero_caching/init.rb
| @@ -46,18 +46,16 @@ module NoosferoHttpCaching | @@ -46,18 +46,16 @@ module NoosferoHttpCaching | ||
| 46 | end | 46 | end |
| 47 | end | 47 | end |
| 48 | 48 | ||
| 49 | -end | ||
| 50 | - | ||
| 51 | -class ActionController::CgiResponse | ||
| 52 | - | ||
| 53 | - def out_with_noosfero_session_check(output = $stdout) | 49 | + # FIXME this method must be called right before the response object is |
| 50 | + # written to the client. | ||
| 51 | + def cleanup_uneeded_session | ||
| 54 | if headers['X-Noosfero-Auth'] == 'false' | 52 | if headers['X-Noosfero-Auth'] == 'false' |
| 55 | - @cgi.send(:instance_variable_set, '@output_cookies', nil) | 53 | + # FIXME |
| 54 | + # cleanup output cookies! | ||
| 56 | end | 55 | end |
| 57 | headers.delete('X-Noosfero-Auth') | 56 | headers.delete('X-Noosfero-Auth') |
| 58 | out_without_noosfero_session_check(output) | 57 | out_without_noosfero_session_check(output) |
| 59 | end | 58 | end |
| 60 | - alias_method_chain :out, :noosfero_session_check | ||
| 61 | 59 | ||
| 62 | end | 60 | end |
| 63 | 61 |