Module: SoftDeletable::Base::ClassMethods
- Defined in:
- lib/soft_deletable.rb
Instance Method Summary collapse
Instance Method Details
#soft_deletable ⇒ Object
44 45 46 47 48 |
# File 'lib/soft_deletable.rb', line 44 def soft_deletable include SoftDeletable::InstanceMethods scope :not_deleted, where(:deleted_at => nil) scope :deleted, where("#{self.to_s.underscore.pluralize.to_sym}.deleted_at IS NOT NULL") end |