diff options
author | Adrien Russo <contact@adrienrusso.com> | 2015-02-16 14:23:33 -0500 |
---|---|---|
committer | Adrien Russo <contact@adrienrusso.com> | 2015-02-16 14:23:33 -0500 |
commit | 8f5e32139359312b3d213cce1e4f8494e439f973 (patch) | |
tree | 86a75b7e822b789b3eb922c002e83a0e6074ba58 | |
parent | a17ffb7908840ba1fee430788b99ef749f4f9412 (diff) | |
download | refinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.tar.gz refinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.tar.bz2 refinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.zip |
Remove Harcoded page_url
-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| |