1. 28 Oct, 2015 1 commit
  2. 26 Sep, 2015 1 commit
  3. 26 Aug, 2015 1 commit
  4. 03 Aug, 2015 1 commit
  5. 12 Jul, 2015 1 commit
    • Add paranoia_destroy_attributes and paranoia_restore_attributes as extension points · b2b8d19e
      Use update_columns rather than touch to update the record, for
      generality
      
      Unlike touch, update_columns does not create a transaction for
      itself, so we need to add the record to the transaction, if present.
      If there is not a current_transaction, the add is a no-op.
      
      This all means that delete will not invoke a transaction or run the
      after_commit callbacks unless called from within one, which is
      consistent with the Rails docs and the behavior of
      ActiveRecord::Base#delete.
      Ben Woosley committed
  6. 01 Jul, 2015 1 commit
  7. 21 Jun, 2015 1 commit
  8. 18 Jun, 2015 1 commit
  9. 16 Jun, 2015 1 commit
    • Fix association class name for namespaced has one model lookups · 72287624
      Use association.klass.name instead of association.class_name to get the
      namespaced class name and therefore prevent:
      
      `Object.get_const(association_class_name)`
      
      from raising "uninitialized constant ParanoidHasOne"
      in the following situation:
      
      module Something
        def self.table_name_prefix
          "something_"
        end
      
        class ParanoidHasOne < ActiveRecord::Base
          acts_as_paranoid
          has_one :paranoid_belongs_to, dependent: :destroy
        end
      
        class ParanoidBelongsTo < ActiveRecord::Base
          acts_as_paranoid
          belongs_to :paranoid_has_one
        end
      end
      
      hasOne = Namespaced::ParanoidHasOne.create
      hasOne.destroy
      hasOne.restore(:recursive => true) # previously would explode
      Landon Wilkins committed
  10. 07 Apr, 2015 1 commit
  11. 18 Feb, 2015 1 commit
  12. 17 Feb, 2015 5 commits
  13. 22 Jan, 2015 9 commits
  14. 19 Jan, 2015 3 commits
  15. 18 Jan, 2015 3 commits
  16. 28 Nov, 2014 2 commits
  17. 26 Nov, 2014 3 commits
  18. 13 Nov, 2014 1 commit
  19. 04 Sep, 2014 2 commits
  20. 22 Aug, 2014 1 commit
    • Add optional sentinel_value · d0703231
      Use fetch for sentinel_value
      
      Use DateTime for sentinel_value example
      
      Use an epoch. rails convers '0' or 0 to nil for datetime fields
      
      Add test for restore
      
      Update readme
      
      Move MYSQL note to bottom of readme
      
      update destroyed? for sentinel value
      Shaun Dern committed