aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-14 02:38:00 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-14 02:47:23 -0700
commit117de953b7f88e8582e2b7155d1e2857f2186bed (patch)
treeb407c8e2eb1b50a80d883c1588366dd6f46c18d1 /app
parentdb821498767c05b1cc4cafa268593eac575597a0 (diff)
downloadrefinerycms-blog-117de953b7f88e8582e2b7155d1e2857f2186bed.tar.gz
refinerycms-blog-117de953b7f88e8582e2b7155d1e2857f2186bed.tar.bz2
refinerycms-blog-117de953b7f88e8582e2b7155d1e2857f2186bed.zip
Make category_ids attribute accessible so that blog categories can be updated.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_post.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb
index c1b8973..5c0101d 100644
--- a/app/models/blog_post.rb
+++ b/app/models/blog_post.rb
@@ -26,7 +26,7 @@ class BlogPost < ActiveRecord::Base
:approximate_ascii => RefinerySetting.find_or_set(:approximate_ascii, false, :scoping => 'blog'),
:strip_non_ascii => RefinerySetting.find_or_set(:strip_non_ascii, false, :scoping => 'blog')
- attr_accessible :title, :body, :tag_list, :draft, :published_at, :browser_title, :meta_keywords, :meta_description, :user_id
+ attr_accessible :title, :body, :tag_list, :draft, :published_at, :browser_title, :meta_keywords, :meta_description, :user_id, :category_ids
scope :by_archive, lambda { |archive_date|
where(['published_at between ? and ?', archive_date.beginning_of_month, archive_date.end_of_month])