diff options
| -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 |
