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.

x37v's latest activity

Tuesday, March 01 2011
6306 Collection Associations Build Method Not Supported for STI was updated in Ruby on Rails
  • x37v
    x37v commented at 7:07 PM

    well, besides the fact that the type field is filled in with a class instead of a string.. i figure it should do h.symbolize_keys[col] = type.to_s

  • x37v
    x37v commented at 7:05 PM

    This works nicely for parent.collection.build(:type => ClassName) but it breaks parent.collection.create(:type => ClassName)
    the parent_id isn't filled in in th...

Tuesday, February 15 2011
6429 limit is ignored with has_and_belongs_to_many and count was updated in Ruby on Rails
  • x37v
    x37v commented at 11:57 PM

    I've attached a diff which contains a test i added to the active record tests. This diff is from 3-0-stable

    but basically:

    X.join(:y).where(condition).limit(2)....

Thursday, November 04 2010
5898 SomeModel.select fails to limit field with includes was updated in Ruby on Rails
  • x37v
    x37v commented at 4:53 PM

    I've noticed the same thing with .joins + .limit

    I've created a test app (attached) which shows the problems [test/unit/user_test.rb]

    This FAILS:
    assert_equal U...