Commit c60f54db0876f7daafe65335b97897c6b3d86f41

Authored by Antonio Terceiro
1 parent f2d0f671

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 104  
105 105 def load_terminology
106 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 110 end
111 111  
112 112 def render_not_found(path = nil)
... ...