app/models/locomotive/concerns/content_entry/slug.rb in locomotivecms-3.0.0.rc3 vs app/models/locomotive/concerns/content_entry/slug.rb in locomotivecms-3.0.0.rc4
- old
+ new
@@ -63,11 +63,9 @@
def similar_slug(slug)
_last = self.class.where(:_id.ne => self._id, _slug: /^#{slug}-?\d*$/i)
.only(:_slug)
.order_by(:_id.desc)
- .context
- .query
.first
if _last
_last['_slug'][::Mongoid::Fields::I18n.locale.to_s]
else