diff options
author | Philip Arndt <git@p.arndt.io> | 2015-02-17 08:35:29 +1300 |
---|---|---|
committer | Philip Arndt <git@p.arndt.io> | 2015-02-17 08:35:29 +1300 |
commit | 32b1ba6acac26766243dbd39d6e401c0954e09a5 (patch) | |
tree | 86a75b7e822b789b3eb922c002e83a0e6074ba58 /db | |
parent | a17ffb7908840ba1fee430788b99ef749f4f9412 (diff) | |
parent | 8f5e32139359312b3d213cce1e4f8494e439f973 (diff) | |
download | refinerycms-blog-32b1ba6acac26766243dbd39d6e401c0954e09a5.tar.gz refinerycms-blog-32b1ba6acac26766243dbd39d6e401c0954e09a5.tar.bz2 refinerycms-blog-32b1ba6acac26766243dbd39d6e401c0954e09a5.zip |
Merge pull request #414 from adrienrusso/patch-1
Remove Harcoded page_url
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| |