Module: OrganizzePermanentRecords::EarlyRails

Defined in:
lib/organizze_permanent_records.rb

Instance Method Summary collapse

Instance Method Details

#with_deletedObject



56
57
58
59
60
# File 'lib/organizze_permanent_records.rb', line 56

def with_deleted
  with_scope :find => {:conditions => "#{quoted_table_name}.deleted_at IS NOT NULL"} do
    yield
  end
end

#with_not_deletedObject



63
64
65
66
67
# File 'lib/organizze_permanent_records.rb', line 63

def with_not_deleted
  with_scope :find => {:conditions => "#{quoted_table_name}.deleted_at IS NULL"} do
    yield
  end
end