nateabbott-friendly_id 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/friendly_id.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{friendly_id}
|
|
5
|
-
s.version = "2.1.
|
|
5
|
+
s.version = "2.1.8"
|
|
6
6
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
7
7
|
s.authors = ["Norman Clarke", "Adrian Mugnolo", "Emilio Tagua", "Nate Abbott"]
|
|
8
8
|
s.date = %q{2009-06-03}
|
|
@@ -108,7 +108,7 @@ module FriendlyId::SluggableInstanceMethods
|
|
|
108
108
|
# If we're renaming back to a previously used friendly_id, delete the
|
|
109
109
|
# slug so that we can recycle the name without having to use a sequence.
|
|
110
110
|
# ORIG slugs.find(:all, :conditions => {:name => slug_text, :scope => scope}).each { |s| s.destroy }
|
|
111
|
-
slugs.find(:all, :conditions => {:name => slug_text, :scope => slug_attributes[:scope]}).each
|
|
111
|
+
slugs.find(:all, :conditions => {:name => slug_text, :scope => slug_attributes[:scope]}).each { |s| s.destroy }
|
|
112
112
|
slug = slugs.build slug_attributes
|
|
113
113
|
slug
|
|
114
114
|
end
|