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.

Pete Deffendol's latest activity

Wednesday, August 25 2010
5448 after_initialize callback included from a module isn't fired was updated in Ruby on Rails
Tuesday, August 24 2010
5448 after_initialize callback included from a module isn't fired was updated in Ruby on Rails
  • Pete Deffendol
    Pete Deffendol commented at 9:05 PM

    After some experimentation, the following produces the desired result, although I still do not know why the original sample would fail:

    module Common
      class C...
  • Pete Deffendol
    Pete Deffendol created the ticket at 6:25 PM

    In Rails 2.3, it was possible to define an after_initialize callback in a module that was included into a model class:

    module UserCallbacks
      def after_initial...
Friday, June 04 2010
4642 Unsaved changes to nested attribute collections are lost when using collection was updated in Ruby on Rails
  • Pete Deffendol
    Pete Deffendol commented at 5:13 PM

    I stripped down my model and controller to pinpoint the problem, and it turns out that I have a custom validation method that is accessing the collection before...

Thursday, June 03 2010
4642 Unsaved changes to nested attribute collections are lost when using collection was updated in Ruby on Rails
  • Pete Deffendol
    Pete Deffendol commented at 11:38 PM

    I"m not sure if my problem is exactly the same as reported here, but I've narrowed the cause down to the same commit. My issue is that the _destroy attributes i...

Friday, April 03 2009
390 postgres adapter quotes table name, breaks when non-default schema is used was updated in Ruby on Rails
Monday, May 19 2008
224 Ruby 1.8.6 required for Rails 2.1? was created in Ruby on Rails
  • Pete Deffendol
    Pete Deffendol created the ticket at 6:44 PM

    Apparently Rails now requires Ruby 1.8.6, since the ActiveSupport:TestCase changes were made in January? I'm running the 2.1 release candidate, and get the fo...

Sunday, May 04 2008
86 PostgreSQL: Use adapter's #create_database db:test:purge was updated in Ruby on Rails
  • Pete Deffendol
    Pete Deffendol commented at 4:49 AM

    The patch referenced here has been rolled into #42 by request.

42 PostgreSQL: Use all config options in rake db:create and db:test:purge was updated in Ruby on Rails
  • Pete Deffendol
    • Title changed from PostgreSQL: Use all config options in rake db:create to PostgreSQL: Use all config options in rake db:create and db:test:purge
    by Pete Deffendol at 4:46 AM

    Alright, attaching a new patch that will handle both this ticket and that described in #86.