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.

Jacob Burkhart's latest activity

Monday, March 09 2009
2144 Don't autosave new_record associations was updated in Ruby on Rails
  • Jacob Burkhart
    Jacob Burkhart commented at 3:07 PM

    Ok, so I previously outlined 2 possible behaviors:

    1. if :autosave were true on Pirate belongs_to :parrot then the pirate save should have failed with a validati...

Thursday, March 05 2009
2144 Don't autosave new_record associations was updated in Ruby on Rails
  • Jacob Burkhart
    Jacob Burkhart commented at 11:17 PM

    The documentation (meaning comments in autosave_association.rb) seems to imply that :autosave is a feature you have to turn on by enabling :autosave => true on ...

  • Jacob Burkhart
    Jacob Burkhart commented at 10:39 PM

    @@@ruby

    def test_respect_validations_on_association_when_autosaving

    pirate = Pirate.new(:catchphrase => "Why don't you validate my parrot?")
    pirate.parrot = Pa...
  • Jacob Burkhart
    Jacob Burkhart created the ticket at 10:38 PM

    I'm finding that activerecord is auto-saving invalid models.

    example:

    
    
      def test_respect_validations_on_association_when_autosaving
        pirate = Pirate.ne...
1930 autosave should validate associations even if master is invalid was updated in Ruby on Rails
  • Jacob Burkhart
    Jacob Burkhart commented at 10:42 PM

    see example of my problems in #2144

  • Jacob Burkhart
    Jacob Burkhart commented at 10:13 PM

    I'm finding that with Rails 2.3 RC2 Active Record is auto-saving way more associations than it used to. And yet ignoring validations on the things it auto-saves...

Thursday, February 26 2009
1752 Adding cleanup_connection method was updated in Ruby on Rails
  • Jacob Burkhart
    Jacob Burkhart commented at 4:01 PM

    I've noticed that ActiveRecord::Base.connection_pool.with_connection doesn't override the connection for all your models...

    If you plan to

    ActiveRecord::Base.co...

Monday, February 09 2009
1924 belongs_to association to self gives SystemStackError on new_record save was created in Ruby on Rails
  • Jacob Burkhart
    Jacob Burkhart created the ticket at 8:33 PM

    When creating models that associate to themselves. You get a SystemStackError "stack level too deep" when attempting to save a new one that associates to itself...

453 has_many delete suffers premature disassociation was updated in Ruby on Rails
  • Jacob Burkhart
    • Assigned user set to josh
    by Jacob Burkhart at 8:02 PM

    I wouldn't call this ticket stale... perhaps you really mean 'wontfix' ?

  • Jacob Burkhart
    Jacob Burkhart commented at 8:01 PM

    Hi Josh,

    Just tested this again with Rails 2.3... Same code I attached with my original ticket. I still think this is a problem.