aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-06-14 07:29:33 -0700
committerJoe Sak <joe@joesak.com>2011-06-14 07:29:33 -0700
commit0fb08973fddd801f53c32d0be52f94a891c1bce7 (patch)
treeb407c8e2eb1b50a80d883c1588366dd6f46c18d1
parentdb821498767c05b1cc4cafa268593eac575597a0 (diff)
parent117de953b7f88e8582e2b7155d1e2857f2186bed (diff)
downloadrefinerycms-blog-0fb08973fddd801f53c32d0be52f94a891c1bce7.tar.gz
refinerycms-blog-0fb08973fddd801f53c32d0be52f94a891c1bce7.tar.bz2
refinerycms-blog-0fb08973fddd801f53c32d0be52f94a891c1bce7.zip
Merge pull request #75 from wikyd/upstream
Fix bug preventing updating of blog post categories
-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])