Skip to content

Commit

Permalink
Friendly ids should strip diacritics and use slugs for pages and page…
Browse files Browse the repository at this point in the history
… parts. This commit resolves that issue.
  • Loading branch information
parndt committed Jun 3, 2009
1 parent 19a2188 commit 512ee55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vendor/plugins/pages/app/models/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Page < ActiveRecord::Base

acts_as_tree :order => "position"

has_friendly_id :title
has_friendly_id :title, :use_slug => true, :strip_diacritics => true

belongs_to :image

Expand Down
2 changes: 1 addition & 1 deletion vendor/plugins/pages/app/models/page_part.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ class PagePart < ActiveRecord::Base

validates_presence_of :title

has_friendly_id :title
has_friendly_id :title, :use_slug => true, :strip_diacritics => true

end

0 comments on commit 512ee55

Please sign in to comment.