aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-16 22:47:50 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-16 22:52:30 -0700
commitec405cdbea1d286da947b3b134dbc156b3e88f8e (patch)
tree4029c2b3fe6d89c9548f2d0e8425a0e837f44c04
parent9320a6a608f097c8fc316b9c2a1e2a3f0bc21afb (diff)
downloadrefinerycms-blog-ec405cdbea1d286da947b3b134dbc156b3e88f8e.tar.gz
refinerycms-blog-ec405cdbea1d286da947b3b134dbc156b3e88f8e.tar.bz2
refinerycms-blog-ec405cdbea1d286da947b3b134dbc156b3e88f8e.zip
Make blog_post custom_url field updatable.
-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 914e112..a010d98 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, :category_ids
+ attr_accessible :title, :body, :tag_list, :draft, :published_at, :browser_title, :meta_keywords, :meta_description, :user_id, :category_ids, :custom_url
scope :by_archive, lambda { |archive_date|
where(['published_at between ? and ?', archive_date.beginning_of_month, archive_date.end_of_month])