1. 08 Feb, 2016 1 commit
    • Add scope without_deleted · aa73c8f3
      Add a without_deleted scope to manually exclude paranoia-deleted records, which is essentially the paranoia_scope.
      Useful when using the option :without_default_scope or the unscoping of a paranoia-model was required.
      Aliased it to the paranoia_scope as opposed to the existing with_deleted scope.
      rbr committed
  2. 02 Feb, 2016 5 commits
  3. 29 Jan, 2016 1 commit
  4. 07 Jan, 2016 2 commits
  5. 28 Dec, 2015 1 commit
  6. 05 Nov, 2015 1 commit
  7. 26 Sep, 2015 1 commit
  8. 15 Sep, 2015 1 commit
  9. 03 Aug, 2015 1 commit
  10. 12 Jul, 2015 2 commits
  11. 01 Jul, 2015 1 commit
  12. 21 Jun, 2015 1 commit
  13. 18 Jun, 2015 1 commit
  14. 17 Jun, 2015 1 commit
  15. 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
  16. 28 Apr, 2015 1 commit
  17. 07 Apr, 2015 3 commits
  18. 23 Mar, 2015 1 commit
  19. 18 Feb, 2015 1 commit
  20. 17 Feb, 2015 5 commits
  21. 13 Feb, 2015 1 commit
  22. 24 Jan, 2015 1 commit
  23. 22 Jan, 2015 6 commits