Changeset 13

Show
Ignore:
Timestamp:
07/18/06 15:33:35 (4 years ago)
Author:
olivier
Message:

avoid circle of death when circular referencing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/globalize/db_translate_ex.rb

    r2 r13  
    205205        # The old translation is cached to make multi languages update at once. 
    206206        def operate_switch_language(code) 
     207          return if code == language_code 
    207208          callback(:before_switch_language) 
    208209          @translation_cache = {} if @translation_cache.nil?