1. 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
  2. 18 Feb, 2015 1 commit
  3. 17 Feb, 2015 5 commits
  4. 22 Jan, 2015 9 commits
  5. 19 Jan, 2015 3 commits
  6. 18 Jan, 2015 3 commits
  7. 28 Nov, 2014 2 commits
  8. 26 Nov, 2014 3 commits
  9. 13 Nov, 2014 1 commit
  10. 04 Sep, 2014 2 commits
  11. 22 Aug, 2014 2 commits
  12. 29 Jul, 2014 1 commit
  13. 28 Jul, 2014 2 commits
  14. 08 Jul, 2014 1 commit
  15. 25 Jun, 2014 1 commit
  16. 13 Jun, 2014 1 commit
  17. 19 Apr, 2014 1 commit
  18. 08 Apr, 2014 1 commit