aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-01-26 16:58:04 -0800
committerPete Higgins <pete@peterhiggins.org>2012-01-26 16:58:04 -0800
commitc89b4dfc1f9f3dea8d7b39cfdc85cae211c6f2c1 (patch)
tree438c53d97cd48b8acd5141f688c18255239d39e9 /app
parent6b1fcc8ea19cf076b2d02ceee4bd26e06f6728a1 (diff)
downloadrefinerycms-blog-c89b4dfc1f9f3dea8d7b39cfdc85cae211c6f2c1.tar.gz
refinerycms-blog-c89b4dfc1f9f3dea8d7b39cfdc85cae211c6f2c1.tar.bz2
refinerycms-blog-c89b4dfc1f9f3dea8d7b39cfdc85cae211c6f2c1.zip
attr_accessible :author for Post model.
Diffstat (limited to 'app')
-rw-r--r--app/models/refinery/blog/post.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb
index 883f4fc..cbb99bd 100644
--- a/app/models/refinery/blog/post.rb
+++ b/app/models/refinery/blog/post.rb
@@ -46,7 +46,7 @@ module Refinery
live.includes(:categories).where(:categories => { Refinery::Categorization.table_name => { :blog_category_id => nil } })
}
- attr_accessible :title, :body, :custom_teaser, :tag_list, :draft, :published_at, :custom_url
+ attr_accessible :title, :body, :custom_teaser, :tag_list, :draft, :published_at, :custom_url, :author
attr_accessible :browser_title, :meta_keywords, :meta_description, :user_id, :category_ids
self.per_page = Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
@@ -111,4 +111,4 @@ module Refinery
end
end
-end \ No newline at end of file
+end