diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/seeds.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 91018db..6eaa1ba 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -13,7 +13,7 @@ if defined?(Refinery::Page) and !Refinery::Page.exists?(:link_url => '/blog') :menu_match => "^/blogs?(\/|\/.+?|)$" ) - Refinery::Pages.default_parts.each do |default_page_part| - page.parts.create(:title => default_page_part, :body => nil) + Refinery::Pages.default_parts.each_with_index do |default_page_part, index| + page.parts.create(:title => default_page_part, :body => nil, :position => index) end end |