Skip to content

Commit

Permalink
Revert 01f3eda (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
bry4n committed Dec 4, 2013
1 parent 3dee074 commit 19f756a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def set_slug
if self.title
title = (self.chapter.title + '-' + self.title)
title = self.chapter.title if self.title.empty?
self.slug = title.parameterize
title = title.gsub(/\(|\)|\./,'').gsub(/\s+/, '-').gsub(''', "-")
self.slug = title
end
end

Expand Down

0 comments on commit 19f756a

Please sign in to comment.