diff options
| author | hukl <contact@smyck.org> | 2009-02-25 21:56:16 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-25 21:56:16 +0100 |
| commit | 19b07ff63c626f76ad512b95ddbf16cddd2bf855 (patch) | |
| tree | 6f4d89b1f74800b605b2e6935d441fb7ed12dc67 /app | |
| parent | 997c4c31b512ad0976f362a91116ec4647488d68 (diff) | |
try
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 00acc29..31cc347 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -69,7 +69,7 @@ class Node < ActiveRecord::Base | |||
| 69 | 69 | ||
| 70 | p.tag_list = self.head.tag_list.join(", ") | 70 | p.tag_list = self.head.tag_list.join(", ") |
| 71 | 71 | ||
| 72 | locale_before = I18n.locale | 72 | locale_before = I18n.locale.dup |
| 73 | 73 | ||
| 74 | I18n.available_locales.each do |l| | 74 | I18n.available_locales.each do |l| |
| 75 | next if l == :root | 75 | next if l == :root |
| @@ -81,7 +81,7 @@ class Node < ActiveRecord::Base | |||
| 81 | end | 81 | end |
| 82 | 82 | ||
| 83 | I18n.locale = locale_before | 83 | I18n.locale = locale_before |
| 84 | 84 | p.reload | |
| 85 | p.user = user | 85 | p.user = user |
| 86 | p.save | 86 | p.save |
| 87 | p | 87 | p |
