aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-21 02:48:07 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-21 02:48:07 -0700
commit610cd865f27c458921e76ab340de41a642823cba (patch)
tree92c317fc191ecc96008fcbaedd2d1abe26423c40
parent70e8d3c49c3e1db9a2c895ad7afb2ec46671c21a (diff)
downloadrefinerycms-blog-610cd865f27c458921e76ab340de41a642823cba.tar.gz
refinerycms-blog-610cd865f27c458921e76ab340de41a642823cba.tar.bz2
refinerycms-blog-610cd865f27c458921e76ab340de41a642823cba.zip
Allow custom_teaser field to be updated via forms.
-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 a010d98..2126827 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, :custom_url
+ attr_accessible :title, :body, :tag_list, :draft, :published_at, :browser_title, :meta_keywords, :meta_description, :user_id, :category_ids, :custom_url, :custom_teaser
scope :by_archive, lambda { |archive_date|
where(['published_at between ? and ?', archive_date.beginning_of_month, archive_date.end_of_month])