aslakjo-comatose 2.0.5.11 → 2.0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- data/comatose.gemspec +1 -1
- data/lib/comatose_page.rb +1 -1
- metadata +1 -1
data/comatose.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated on Tue May 20 20:13:12 -0500 2008
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = "aslakjo-comatose"
|
4
|
-
s.version = "2.0.5.
|
4
|
+
s.version = "2.0.5.12"
|
5
5
|
s.date = "2008-10-31" # 2008-05-20
|
6
6
|
s.summary = "Micro CMS designed for being embedded into existing Rails applications"
|
7
7
|
s.email = "matt@elucidata.net"
|
data/lib/comatose_page.rb
CHANGED
@@ -32,7 +32,7 @@ class ComatosePage < ActiveRecord::Base
|
|
32
32
|
# Create slug from title
|
33
33
|
if record.slug.blank? and !record.title.blank?
|
34
34
|
striped_title = record.title.downcase.lstrip.rstrip
|
35
|
-
ComatosePage.slugize_foreign_leters(striped_title)
|
35
|
+
striped_title = ComatosePage.slugize_foreign_leters(striped_title)
|
36
36
|
record.slug = striped_title.gsub( /[^-a-z0-9~\s\.:;+=_]/, '').gsub(/[\s\.:;=_+]+/, '-').gsub(/[\-]{2,}/, '-').to_s
|
37
37
|
end
|
38
38
|
end
|