aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-06-23 09:43:53 -0500
committerJoe Sak <joe@joesak.com>2011-06-23 09:43:53 -0500
commit787a0916b1514a7b904f5653d0c2810aab4ffa94 (patch)
treefc747e8f06428af8d057f1666082750f5d603811 /app/models
parente906ed2eca96a87b737052d55ef635ce60fbffdc (diff)
parent767346b6941dbdff3aa2ef1f58a87429597da212 (diff)
downloadrefinerycms-blog-787a0916b1514a7b904f5653d0c2810aab4ffa94.tar.gz
refinerycms-blog-787a0916b1514a7b904f5653d0c2810aab4ffa94.tar.bz2
refinerycms-blog-787a0916b1514a7b904f5653d0c2810aab4ffa94.zip
Merge branch 'custom_teasers' of https://github.com/wikyd/refinerycms-blog into wikyd-custom-teasers
Diffstat (limited to 'app/models')
-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])