aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-03-27 17:04:33 -0500
committerJoe Sak <joe@joesak.com>2011-03-27 17:04:33 -0500
commit1568c66cd02a489bc5d1d1fda2675f399a110cf1 (patch)
tree03ec03fbff93c876d9626c1e2917c378ae333f90
parentaed62fa7a01f372cb30b26eb43c49d187d1f4087 (diff)
parentc583f930e8b4ec1eda74b510b45b881dc40b4b46 (diff)
downloadrefinerycms-blog-1568c66cd02a489bc5d1d1fda2675f399a110cf1.tar.gz
refinerycms-blog-1568c66cd02a489bc5d1d1fda2675f399a110cf1.tar.bz2
refinerycms-blog-1568c66cd02a489bc5d1d1fda2675f399a110cf1.zip
Merge branch 'master' of https://github.com/natebird/refinerycms-blog into natebird-master
-rw-r--r--db/seeds/refinerycms_blog.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/seeds/refinerycms_blog.rb b/db/seeds/refinerycms_blog.rb
index f958fab..9686c7f 100644
--- a/db/seeds/refinerycms_blog.rb
+++ b/db/seeds/refinerycms_blog.rb
@@ -1,6 +1,8 @@
User.find(:all).each do |user|
- user.plugins.create(:name => "refinerycms_blog",
- :position => (user.plugins.maximum(:position) || -1) +1)
+ if user.plugins.where(:name => 'refinerycms_blog').blank?
+ user.plugins.create(:name => "refinerycms_blog",
+ :position => (user.plugins.maximum(:position) || -1) +1)
+ end
end
page = Page.create(