spec/fixtures/models/article.rb in couchrest_model-2.1.0.rc1 vs spec/fixtures/models/article.rb in couchrest_model-2.2.0.beta1

- old
+ new

@@ -31,8 +31,8 @@ timestamps! before_save :generate_slug_from_title def generate_slug_from_title - self['slug'] = title.downcase.gsub(/[^a-z0-9]/,'-').squeeze('-').gsub(/^\-|\-$/,'') if new? + self['slug'] = title.to_s.downcase.gsub(/[^a-z0-9]/,'-').squeeze('-').gsub(/^\-|\-$/,'') if new? end end