Commit c60f54db0876f7daafe65335b97897c6b3d86f41
1 parent
f2d0f671
Exists in
master
and in
28 other branches
ActionItem1049: oops, cache must be in the class scope
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/controllers/application.rb
@@ -104,9 +104,9 @@ class ApplicationController < ActionController::Base | @@ -104,9 +104,9 @@ class ApplicationController < ActionController::Base | ||
104 | 104 | ||
105 | def load_terminology | 105 | def load_terminology |
106 | # cache terminology for performance | 106 | # cache terminology for performance |
107 | - @terminology_cache ||= {} | ||
108 | - @terminology_cache[environment.id] ||= environment.terminology | ||
109 | - Noosfero.terminology = @terminology_cache[environment.id] | 107 | + @@terminology_cache ||= {} |
108 | + @@terminology_cache[environment.id] ||= environment.terminology | ||
109 | + Noosfero.terminology = @@terminology_cache[environment.id] | ||
110 | end | 110 | end |
111 | 111 | ||
112 | def render_not_found(path = nil) | 112 | def render_not_found(path = nil) |