Module: SoftDestroyable::ClassMethods
- Defined in:
- lib/soft_destroyable.rb
Instance Method Summary collapse
Instance Method Details
#soft_destroyable(options = {}) ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/soft_destroyable.rb', line 44 def soft_destroyable( = {}) return if soft_destroyable? scope :not_deleted, where(:deleted => false) scope :deleted, where(:deleted => true) include InstanceMethods extend SingletonMethods end |