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.

quake wang's latest activity

Wednesday, March 25 2009
2302 Strategy::LocalCache makes memcache (or others) stored object immutable was updated in Ruby on Rails
  • quake wang
    quake wang commented at 11:59 AM

    test case and patch

Saturday, March 21 2009
2306 AssociationCollection's destroy method is not compatible with old version was created in Ruby on Rails
  • quake wang
    quake wang created the ticket at 6:20 AM
    
    class Article < ActiveRecord::Base
      has_many :reviews
    end
    

    in rails 2.2.2, we can use fixnum parameter to destroy one collection object:

    
    article = Artic...
Friday, March 20 2009
2302 Strategy::LocalCache makes memcache (or others) stored object immutable was created in Ruby on Rails
  • quake wang
    quake wang created the ticket at 12:38 PM

    2.3 new added Strategy::LocalCache is using MemoryStore as internal cache, which makes memcache stored object immutable(memory store: @data[name] = value.freeze...

Saturday, July 26 2008
608 Dirty checking is broken for string join was updated in Ruby on Rails
  • quake wang
    quake wang commented at 2:26 AM

    I know will_change can resolve this issue as a temp solution, however, how to explain the inconsistent of string / numeric field?

    create_table :topics do |t|

    ...

Sunday, July 13 2008
608 Dirty checking is broken for string join was created in Ruby on Rails
  • quake wang
    quake wang created the ticket at 4:14 AM

    Rails 2.1:

    create_table :topics do |t|

    t.string :title

    end

    class Topic < ActiveRecord::Base

    end

    in console:

    >> t = Topic.find(1)

    >> t.title = t.title <...

360 Dirty tracking on serialized columns is broken was updated in Ruby on Rails
  • quake wang
    quake wang commented at 4:04 AM

    I can't reproduce this error in rails 2.1, however, dirty checking is broken is this case:

    >> m.reload

    >> m.legs = m.legs << 4

    >> m.changed?

    => false