x37v
Not a member
x37v's latest activity
Tuesday, March 01 2011
6306
Collection Associations Build Method Not Supported for STI
was updated
in Ruby on Rails
-
x37v commented at 7:07 PMwell, 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 commented at 7:05 PMThis works nicely for
parent.collection.build(:type => ClassName)but it breaksparent.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 commented at 11:57 PMI'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 commented at 4:53 PMI'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...