diff options
| author | hukl <contact@smyck.org> | 2009-02-26 01:23:37 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-26 01:23:37 +0100 |
| commit | 10c1c7b47c470e1d960da7e77a9d19a6d065fdf0 (patch) | |
| tree | 4b09c84a8c4089fbb00843f0ff7a17d1c2d517c9 /app/models/node.rb | |
| parent | 64639a314918e368d3fe6c6c21b8651ab8317806 (diff) | |
narf
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 736fe1f..44f352a 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -73,14 +73,13 @@ class Node < ActiveRecord::Base | |||
| 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 |
| 76 | Page.with_locale l do | 76 | I18n.locale = l |
| 77 | p.title = self.head.title | 77 | p.title = self.head.title |
| 78 | p.abstract = self.head.abstract | 78 | p.abstract = self.head.abstract |
| 79 | p.body = self.head.body | 79 | p.body = self.head.body |
| 80 | end | ||
| 81 | end | 80 | end |
| 82 | 81 | ||
| 83 | Page.locale = locale_before | 82 | I18n.locale = locale_before |
| 84 | 83 | ||
| 85 | p.user = user | 84 | p.user = user |
| 86 | p.save | 85 | p.save |
