Merge branch 'master' of https://github.com/natebird/refinerycms-blog into natebird-master

This commit is contained in:
Joe Sak 2011-03-27 17:04:33 -05:00
commit 1568c66cd0

View file

@ -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(