aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery
diff options
context:
space:
mode:
authorMichael Gall <michael@wakeless.net>2011-08-31 12:15:07 +1000
committerMichael Gall <michael@wakeless.net>2011-08-31 12:16:40 +1000
commit0791d3a2e5896b03e52bd6c04592e71506cd49b8 (patch)
tree642678f380cd1f9afc5d3193d63777b171b9dd81 /app/models/refinery
parent2f695519da998ddef91d44f2ec75759e9dadbb4a (diff)
downloadrefinerycms-blog-0791d3a2e5896b03e52bd6c04592e71506cd49b8.tar.gz
refinerycms-blog-0791d3a2e5896b03e52bd6c04592e71506cd49b8.tar.bz2
refinerycms-blog-0791d3a2e5896b03e52bd6c04592e71506cd49b8.zip
Add attr_accessible to blog posts to interact better with page_images
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