Module: DestroyedAt::ClassMethods
- Defined in:
- lib/destroyed_at.rb
Instance Method Summary collapse
Instance Method Details
#destroyed ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/destroyed_at.rb', line 18 def destroyed query = all.with_default_scope query.where_values.reject! do |node| Arel::Nodes::Equality === node && node.left.name == 'destroyed_at' && node.right.nil? end query.where.not(destroyed_at: nil) end |