Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Georg Ledermann's latest activity

Wednesday, July 14 2010
5105 has_many: Dependent deleting does not work with STI was updated in Ruby on Rails
  • Georg Ledermann
    • Tag changed from 2-3-stable, 2.3.8, activerecord, associations, has_many, patch to 2-3-stable, 2.3.8, activerecord, associations, has_many, patch, rails3
    by Georg Ledermann at 7:44 AM

    Sorry, here comes a valid patch file for Rails 3. But there are still no tests for this very simple change. The patch just added a missing "base_class" usage.

Tuesday, July 13 2010
5105 has_many: Dependent deleting does not work with STI was updated in Ruby on Rails
  • Georg Ledermann
    Georg Ledermann commented at 12:12 PM

    The patch for Rails3 is just the same. I've attached it.

  • Georg Ledermann
    • Tag changed from 2.3.8, has_many, patch to 2-3-stable, 2.3.8, activerecord, associations, has_many, patch
    by Georg Ledermann at 11:29 AM
  • Georg Ledermann
    • Tag changed from 2.3.8 has_many patch to 2.3.8, has_many, patch
    by Georg Ledermann at 11:24 AM
  • Georg Ledermann
    Georg Ledermann created the ticket at 10:18 AM

    has_many has a deleting/nullify bug if used with STI. Please see this example:

    class Contact < ActiveRecord::Base
      has_many :addresses, :as => :object, :depen...
Thursday, May 27 2010
4702 Rails 2.3.8: Hash#deep_merge fails for HashWithIndifferentAccess was updated in Ruby on Rails
  • Georg Ledermann
    Georg Ledermann commented at 10:36 AM

    IMHO this patch introduces another bug, because it changes self.

    Here is a failing test (based on my test above):

    class HashTest < ActiveSupport::TestCase
      de...
Wednesday, May 26 2010
4702 Rails 2.3.8: Hash#deep_merge fails for HashWithIndifferentAccess was created in Ruby on Rails
  • Georg Ledermann
    Georg Ledermann created the ticket at 8:11 AM

    The following test fails with Rails 2.3.8

    class HashTest < ActiveSupport::TestCase
      def test_deep_merge_for_hash_with_indifferent_access
        hash1 = { :k => {...
Thursday, July 23 2009
2908 Constructed SQL is wrong for multiple :joins based on has_many with :conditions was updated in Ruby on Rails
Monday, July 20 2009
2908 Constructed SQL is wrong for multiple :joins based on has_many with :conditions was updated in Ruby on Rails
  • Georg Ledermann
    • Tag changed from 2.3.2, conditions, has_many, join, joins, sql to 2.3.2, 2.3.3, activerecord, conditions, has_many, join, joins, sql
    by Georg Ledermann at 9:15 PM

    Still occurs in Rails 2.3.3

Tuesday, July 14 2009
2908 Constructed SQL is wrong for multiple :joins based on has_many with :conditions was created in Ruby on Rails
  • Georg Ledermann
    Georg Ledermann created the ticket at 10:11 AM

    The generated INNER JOIN statement is wrong if there are multiple has_many with :conditions and all are joined. See this example:

    class Agreement < ActiveRecor...