diff options
| author | hukl <contact@smyck.org> | 2009-02-25 22:48:46 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-25 22:48:46 +0100 |
| commit | 16f3df9e4b9361f8336594bfa6d807c6669c9799 (patch) | |
| tree | 2b1d6ff3786a5e70f403abd8759f27d5a3e17be2 /app/models/node.rb | |
| parent | 2427889fd268dac5ea9dae7bfdf7e5af53dd799c (diff) | |
another locale fix
Diffstat (limited to 'app/models/node.rb')
| -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 81d61a8..0b1351e 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 |
| 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 |
| @@ -80,7 +80,7 @@ class Node < ActiveRecord::Base | |||
| 80 | end | 80 | end |
| 81 | end | 81 | end |
| 82 | 82 | ||
| 83 | #Page.locale = locale_before | 83 | Page.locale = locale_before |
| 84 | 84 | ||
| 85 | p.user = user | 85 | p.user = user |
| 86 | p.save | 86 | p.save |
