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.

Fjan's latest activity

Thursday, July 16 2009
2919 Activerecord::Base#clone does not set dirty bits was created in Ruby on Rails
  • Fjan
    Fjan created the ticket at 10:52 PM

    A cloned object does not get marked dirty:

    obj = Person.first
    obj2 = obj.clone
    obj2.changed? # => false

    This might trip people up who limit expensive validation...

Monday, May 25 2009
2713 Actionmailer does not set charset on attachments was created in Ruby on Rails
  • Fjan
    Fjan created the ticket at 1:31 PM

    Actionmailer deliberately removes the character set from attachments (line 71 of part.rb simply says: ctype_attrs.delete "charset")

    While this may make sense fo...

Thursday, April 02 2009
2397 serialized attributes clobbered on partial updates was created in Ruby on Rails
  • Fjan
    Fjan created the ticket at 9:07 AM

    This issue caused a serious database corruption for me. If you partially retrieve an object from the database with :select and then save it, any serialized attr...

Tuesday, March 24 2009
2200 reset_session broken was updated in Ruby on Rails
  • Fjan
    Fjan commented at 11:40 AM

    Pawel: I agree, your suggestion is better than mine. I figured that changing reset_session() to not create a new session would break applications that do flash[...

Monday, March 23 2009
2200 reset_session broken was updated in Ruby on Rails
  • Fjan
    Fjan commented at 6:33 PM

    Dominique: session.clear() clears the session but it does not delete it. reset_session() deletes the session but creates a new empty at the same time. So neithe...

  • Fjan
    Fjan commented at 2:39 PM

    Dominique, I do not suggest that reset_session should not remove its old session_id, nor do I want to change its current definition.

    My point is that there is c...

  • Fjan
    Fjan commented at 10:45 AM

    Good point. Perhaps an optional parameter to reset_session then? Something like: reset_session(create_new=true)

Sunday, March 22 2009
2200 reset_session broken was updated in Ruby on Rails
  • Fjan
    Fjan commented at 10:10 PM

    The current behaviour is not entirely unuseful: I just ran into a case where I would like to really get rid of a session, and not create a new one, as the curre...

Wednesday, March 18 2009
1453 'get's in integration test unless you are using cookie sessions was updated in Ruby on Rails
  • Fjan
    Fjan commented at 4:49 PM

    This is fixed in 2.3.2

2200 reset_session broken was updated in Ruby on Rails
  • Fjan
    Fjan commented at 4:23 PM

    Another workaround is to simply replace reset_session with

    session.clear

    (you may need to lazy load the session with session[:load] if you haven't used it yet)