diff options
author | Joe Sak <joe@joesak.com> | 2011-03-27 17:04:33 -0500 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-03-27 17:04:33 -0500 |
commit | 1568c66cd02a489bc5d1d1fda2675f399a110cf1 (patch) | |
tree | 03ec03fbff93c876d9626c1e2917c378ae333f90 | |
parent | aed62fa7a01f372cb30b26eb43c49d187d1f4087 (diff) | |
parent | c583f930e8b4ec1eda74b510b45b881dc40b4b46 (diff) | |
download | refinerycms-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.rb | 6 |
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( |