summaryrefslogtreecommitdiff
path: root/app/models/page.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-20 23:30:39 +0200
committerhukl <contact@smyck.org>2009-10-20 23:30:39 +0200
commit20056a0e9b4f96680ca0c643166885f65dcd0be7 (patch)
treea52396b8781ceacfbc33715d6b360a9bb32a77a7 /app/models/page.rb
parent8d8b530e2c9f5e2debb2d6abb421187c31733c34 (diff)
allow to overwrite the original user in edit view
Diffstat (limited to 'app/models/page.rb')
-rw-r--r--app/models/page.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index 29fcae6..8eeab53 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -38,7 +38,7 @@ class Page < ActiveRecord::Base
38 before_save :rewrite_links_in_body 38 before_save :rewrite_links_in_body
39 39
40 # Security 40 # Security
41 attr_accessible :title, :abstract, :body, :template_name, :published_at 41 attr_accessible :title, :abstract, :body, :template_name, :published_at, :user_id
42 42
43 # Class Methods 43 # Class Methods
44 44
@@ -126,6 +126,7 @@ class Page < ActiveRecord::Base
126 self.tag_list = page.tag_list 126 self.tag_list = page.tag_list
127 self.template_name = page.template_name 127 self.template_name = page.template_name
128 self.published_at = page.published_at 128 self.published_at = page.published_at
129 self.user = page.user
129 130
130 # Getting rid of the auto-generated empty translations 131 # Getting rid of the auto-generated empty translations
131 self.globalize_translations.delete_all 132 self.globalize_translations.delete_all