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.

Ernie Miller's latest activity

Thursday, August 07 2008
738 Fixed AssociationCollection#<< resulting in unexpected values in @target when... was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 11:46 AM

    I debated about that. In the end, since ActiveRecord doesn't actually prevent duplicate records in the DB, but only in the @target array, when :uniq is set, I f...

Saturday, August 02 2008
738 Fixed AssociationCollection#<< resulting in unexpected values in @target when... was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 4:50 PM

    Attaching updated patch.

Friday, August 01 2008
738 Fixed AssociationCollection#<< resulting in unexpected values in @target when... was created in Ruby on Rails
  • Ernie Miller
    Ernie Miller created the ticket at 4:19 AM

    When AssociationCollection#<< is called, it invokes #add_record_to_target_with_callbacks, which doesn't pay any attention to the reflection's :uniq option befo...

Thursday, July 03 2008
360 Dirty tracking on serialized columns is broken was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 2:59 PM

    Eh, I give up. Trying Textile but it's not working. You get the idea.

  • Ernie Miller
    Ernie Miller commented at 2:58 PM

    Hm. Trying once more since Lighthouse formatting eluded me.

    class Monkey < ActiveRecord::Base
    

    serialize :legs, Array

    end

    and

    Loading development environme...
  • Ernie Miller
    • Tag set to activerecord, bug, dirty
    by Ernie Miller at 2:51 PM

    Is this bug valid? I can't reproduce in Rails 2.1, anyway.

    class Monkey < ActiveRecord::Base

    serialize :legs, Array

    end

    And in script/console:

    Loading...

Tuesday, July 01 2008
519 Migration error with rails 2.1 and drop_table -- still looking for schema_info was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 3:18 AM

    I did try with a new rails project. From glancing through the migration code, it looked to me like the schema_info table undergoes a one-time conversion to sch...

  • Ernie Miller
    Ernie Miller commented at 2:39 AM

    I can't duplicate this. Copied your specific migration to a file, got the following with rake db:migrate:

    C:\Users\Neo\blah>rake db:migrate

    (in C:/Users/Neo/...

Sunday, June 29 2008
195 Convenience methods for time zones outside the U.S. was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 3:34 AM

    Done. I sort of feel like I cheated with my MockTimeZone stub, but then again, that's what the added test for TimeZone#=~ is for, I suppose. :)

Friday, June 27 2008
195 Convenience methods for time zones outside the U.S. was updated in Ruby on Rails
  • Ernie Miller
    Ernie Miller commented at 5:21 PM

    Check out the new version, attached. Is this a bit better? I moved the priority_zones part into time_zone_options_for_select, instead, which allowed me to make...