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,7 +1,9 @@
User.find(:all).each do |user| User.find(:all).each do |user|
if user.plugins.where(:name => 'refinerycms_blog').blank?
user.plugins.create(:name => "refinerycms_blog", user.plugins.create(:name => "refinerycms_blog",
:position => (user.plugins.maximum(:position) || -1) +1) :position => (user.plugins.maximum(:position) || -1) +1)
end end
end
page = Page.create( page = Page.create(
:title => "Blog", :title => "Blog",