Skip to content

Commit

Permalink
Fixes url generation in seeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Yurkowski committed Feb 29, 2012
1 parent 744aae4 commit 32d7cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/generators/refinery/engine/templates/db/seeds.rb
Expand Up @@ -8,7 +8,7 @@
end

<% unless skip_frontend? %>
url = "/<%= namespacing.underscore %>/<%= plural_name %>"
url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>"
if defined?(::Refinery::Page) && ::Refinery::Page.where(:link_url => url).empty?
page = ::Refinery::Page.create(
:title => '<%= class_name.pluralize.underscore.titleize %>',
Expand Down

0 comments on commit 32d7cdf

Please sign in to comment.