Skip to content

Commit

Permalink
Merge pull request refinery#1583 from SmartMedia/nested_path
Browse files Browse the repository at this point in the history
Fix adding link to page when switch locale in administration
  • Loading branch information
ugisozols committed Apr 24, 2012
2 parents 52218e9 + 7865cc5 commit a0513cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/app/models/refinery/page.rb
Expand Up @@ -300,11 +300,11 @@ def nested_path
Rails.cache.fetch(path_cache_key) { ['', nested_url].join('/') }
end

def path_cache_key(locale = ::I18n.locale)
def path_cache_key(locale = Globalize.locale)
[cache_key(locale), 'nested_path'].join('#')
end

def url_cache_key(locale = ::I18n.locale)
def url_cache_key(locale = Globalize.locale)
[cache_key(locale), 'nested_url'].join('#')
end

Expand Down

0 comments on commit a0513cf

Please sign in to comment.