Good idea! Will change ASAP.


On Tue, Apr 23, 2013 at 5:38 PM, Michael Grosser
<notifications@github.com>wrote:

> In lib/soft_deletion/relation.rb:
>
> > +      new_scope = scoped.with_default_scope
> > +      new_scope.where_values.delete_if {|where| where.left.name.to_s == 'deleted_at' && where.right.nil?}
> > +      new_scope
> > +    end
> > +
> > +    def only_deleted
> > +      new_scope = scoped.with_deleted
> > +      new_scope.where('deleted_at IS NOT NULL')
> > +    end
> > +  end
> > +
> > +
> > +  ################
> > +  # Copy-n-pasted from FriendlyId/friendly_id/lib/friendly_id/base.rb
> > +  ################
> > +  module Base
>
> I usually try to keep everything in a file namespaced under the path ->
> SoftDeletion::Relation::Base
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/soft_deletion/pull/10/files#r3929095>
> .
>