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.

Luca Guidi's latest activity

Wednesday, August 27 2008
900 Memcached uses local time instead of configured time zone. was updated in Ruby on Rails
  • Luca Guidi
    Luca Guidi commented at 10:12 AM

    I suggest a bit different code, because the #instance_variable_get call generates a warning if the time isn't UTC: warning: instance variable @marshal_with_utc_...

Tuesday, August 26 2008
900 Memcached uses local time instead of configured time zone. was updated in Ruby on Rails
Monday, August 25 2008
900 Memcached uses local time instead of configured time zone. was updated in Ruby on Rails
  • Luca Guidi
    Luca Guidi commented at 9:09 PM

    Calling explicitly #updated_at should force the type casting. Is it right? But, even if I force the type casting, invoking #updated_at, before cache the object,...

  • Luca Guidi
    Luca Guidi commented at 7:11 PM
    
    >> utc = Time.utc(2000, 1, 1)
    => Sat Jan 01 00:00:00 UTC 2000
    >> Rails.cache.write('utc', utc)
    => true
    >> Rails.cache.read('utc')
    => Sat Jan 01 01:00:00 +0100 ...
  • Luca Guidi
    Luca Guidi commented at 4:41 PM

    Yes it still occurs.

  • Luca Guidi
    Luca Guidi commented at 3:54 PM

    It seems like Marshal can't properly (un)serialize models with @changed_attributes, maybe because timestamps inside that hash, are instances of Time instead of ...

  • Luca Guidi
    Luca Guidi commented at 3:19 PM

    I know this is the behavior of Ruby's marshaling, but it doesn't seems a consistent solution. Because: * This affects only the Memcached store * The first time ...

1 earlier change…
  • Luca Guidi
    Luca Guidi created the ticket at 11:30 AM

    I'm using memcached store and UTC time zone.

    
    comment = Comment.first
    Rails.cache.write('comment', comment)
    cached_comment = Rails.cache.read('comment')
    
    comme...
Saturday, July 12 2008
505 Eager loading doesn't respect :limit option of the loaded association was updated in Ruby on Rails
  • Luca Guidi
    Luca Guidi commented at 2:37 PM

    I tried to figure out how to fix it, but an unnecessary complexity would be added to the code.

    I agree to wontfix status.

    It would be nice to specify this be...

Friday, June 27 2008
499 Update ActionMailer uses_mocha declaration was created in Ruby on Rails
  • Luca Guidi
    Luca Guidi created the ticket at 4:13 PM

    ActionMailer declaration of uses_mocha should be updated like it has been done in each other Rails component.

    The current implementation of #uses_mocha causes...