aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdrien Russo <contact@adrienrusso.com>2015-02-16 14:23:33 -0500
committerAdrien Russo <contact@adrienrusso.com>2015-02-16 14:23:33 -0500
commit8f5e32139359312b3d213cce1e4f8494e439f973 (patch)
tree86a75b7e822b789b3eb922c002e83a0e6074ba58 /db
parenta17ffb7908840ba1fee430788b99ef749f4f9412 (diff)
downloadrefinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.tar.gz
refinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.tar.bz2
refinerycms-blog-8f5e32139359312b3d213cce1e4f8494e439f973.zip
Remove Harcoded page_url
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb6
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|