Module: SoftDestroyable::ClassMethods

Defined in:
lib/soft_destroyable.rb

Instance Method Summary collapse

Instance Method Details

#soft_destroyable(options = {}) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/soft_destroyable.rb', line 47

def soft_destroyable(options = {})
  return if soft_destroyable?

  scope :not_deleted, where(:deleted => false)
  scope :deleted, where(:deleted => true)

  include InstanceMethods
  extend SingletonMethods
end