diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/seeds.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 6eaa1ba..271b044 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,12 +5,12 @@ Refinery::User.all.each do |user| end end if defined?(Refinery::User) -if defined?(Refinery::Page) and !Refinery::Page.exists?(:link_url => '/blog') +if defined?(Refinery::Page) and !Refinery::Page.exists?(:link_url => (url = Refinery::Blog.page_url)) page = Refinery::Page.create( :title => "Blog", - :link_url => "/blog", + :link_url => url, :deletable => false, - :menu_match => "^/blogs?(\/|\/.+?|)$" + :menu_match => "^#{url}?(\/|\/.+?|)$" ) Refinery::Pages.default_parts.each_with_index do |default_page_part, index| |