lib/slugalicious.rb in slugalicious-2.1.0 vs lib/slugalicious.rb in slugalicious-2.1.1
- old
+ new
@@ -242,10 +242,10 @@
slugs.update_all(active: false)
Slug.create!(sluggable: self,
slug: available_slugs.first,
active: true,
scope: self.class._slug_scope.try!(:call, self))
- slugs(true)
+ slugs.reload
end
@active_slug = nil
end
end