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.

prasanna's latest activity

Monday, August 16 2010
5381 ActiveRecord marshal dump/load has a different behavior on boolean [rails] was updated in Ruby on Rails
  • prasanna
    prasanna commented at 8:21 PM

    It is probably not a deal-breaker. I am guessing, rails works like this:

    
    @after_save_running = true
    # call the after_save handlers
    @after_save_running = false...
  • prasanna
    prasanna commented at 8:11 PM

    DataBase: mysql
    Rails: 2.3.5

    To reproduce it: You have to put the following statement in your after_save handler.

    class Bool
    
      after_save :dumper
    
      def dumpe...
Saturday, August 14 2010
5381 ActiveRecord marshal dump/load has a different behavior on boolean [rails] was updated in Ruby on Rails
  • prasanna
    • Assigned user set to Aaron Patterson
    by prasanna at 7:52 PM

    I was wondering if this should be a bug report of a ticket?

  • prasanna
    prasanna created the ticket at 7:45 PM

    Step 1: setup

    a = Aritcle.new(:some_boolean => false)
    a.save
    write_to_memcache(a.id, Marshal.dump(a))
    b = Marshal.load(read_from_memcache(a.id))
    

    If I do:

    b.s...