Module: OrganizzePermanentRecords::EarlyRails
- Defined in:
- lib/organizze_permanent_records.rb
Instance Method Summary collapse
Instance Method Details
#with_deleted ⇒ Object
60 61 62 63 64 |
# File 'lib/organizze_permanent_records.rb', line 60 def with_deleted with_scope :find => {:conditions => "#{quoted_table_name}.deleted_at IS NOT NULL"} do yield end end |
#with_not_deleted ⇒ Object
67 68 69 70 71 |
# File 'lib/organizze_permanent_records.rb', line 67 def with_not_deleted with_scope :find => {:conditions => "#{quoted_table_name}.deleted_at IS NULL"} do yield end end |