nateabbott-friendly_id 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
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.7"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nateabbott-friendly_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norman Clarke