aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/refinery')
-rw-r--r--app/models/refinery/blog_post.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/refinery/blog_post.rb b/app/models/refinery/blog_post.rb
index 4da083c..6b27688 100644
--- a/app/models/refinery/blog_post.rb
+++ b/app/models/refinery/blog_post.rb
@@ -42,6 +42,8 @@ module Refinery
scope :previous, lambda { |i| where(["published_at < ? and draft = ?", i.published_at, false]).limit(1) }
# next is now in << self
+ attr_accessible :title, :body, :custom_teaser, :tag_list, :draft, :published_at, :custom_url, :browser_title, :meta_keywords, :meta_description, :user_id, :category_ids
+
def next
BlogPost.next(self).first
end