aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-08-30 19:22:26 -0700
committerPhilip Arndt <parndt@gmail.com>2011-08-30 19:22:26 -0700
commit372235b96322bf4a0a1b123cc7a2ff674d29c6e0 (patch)
tree642678f380cd1f9afc5d3193d63777b171b9dd81
parent2f695519da998ddef91d44f2ec75759e9dadbb4a (diff)
parent0791d3a2e5896b03e52bd6c04592e71506cd49b8 (diff)
downloadrefinerycms-blog-372235b96322bf4a0a1b123cc7a2ff674d29c6e0.tar.gz
refinerycms-blog-372235b96322bf4a0a1b123cc7a2ff674d29c6e0.tar.bz2
refinerycms-blog-372235b96322bf4a0a1b123cc7a2ff674d29c6e0.zip
Merge pull request #121 from wakeless/attr_accessible
Attr accessible
-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