module SoftDeletable::Base::ClassMethods
Public Instance Methods
soft_deletable()
click to toggle source
# 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