Philip Hallstrom
Not a member
Philip Hallstrom's latest activity
Wednesday, August 27 2008
-
Philip Hallstrom commented at 4:27 PMThe problem with :greater_than or inclusion is that it doesn't work for zip codes (which I think is what the original post linked to as a problem).
If you're s...
Tuesday, August 19 2008
-
-
Philip Hallstrom commented at 5:57 AMThis patch doesn't cover creation (State.cities.build(...)) correctly.
Monday, August 18 2008
-
Philip Hallstrom commented at 9:52 PMSame patch with tests in format correct git/rails format for submission.
Saturday, August 16 2008
-
Philip Hallstrom commented at 4:59 AMLooks like you could fix this by patching lines 539 and 556 of activerecord/lib/active_record/validations.rb to convert 'value' to a String if it's any of the v...
Friday, August 15 2008
-
- Title changed from SQL queries with WHERE IN are incorrectly generated for named scopes to PATCH: SQL queries with WHERE IN are incorrectly generated for named scopes
- Tag changed from 2.1, activerecord, bug, named_scope to 2.1, activerecord, bug, named_scope, patch
Below is a patch that fixes this. It has a slight drawback in that in cases where the named scope only returns one value it will generate "WHERE id IN (123)" w...
-
- Title changed from :primary_key option for belongs_to to PATCH: primary_key option for belongs_to
- Tag changed from patch to activerecord, belongs_to, patch, tests
Tuesday, August 12 2008
-
Philip Hallstrom commented at 7:26 PMI dug into the unit tests and believe I've added a correct unit test to test this functionality.
$ rake test_sqlite3 TEST=test/cases/associations/belongs_to_a... -
- Tag set to patch
I've written up a patch that seems to work. I may not be thinking it all the way through, but maybe it will get things closer to where they need to be. I've d...