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.

Jan Xie's latest activity

Saturday, October 16 2010
5819 typo in abstract_renderer? was created in Ruby on Rails
Friday, October 15 2010
5488 default_scope doesn't work at a late point was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 11:48 AM

    The new test I added is in relation_scoping_test.rb, try with TEST=test/cases/relation_scoping_test.rb?

  • Jan Xie
    Jan Xie commented at 11:46 AM

    The real problem is default_scope doesn't merge where clauses correctly. Sorry for my inaccurate description in original ticket.

  • Jan Xie
    Jan Xie commented at 11:32 AM

    Do you mean reset_scoped_methods in default_scope will cause the following run more times?

    Thread.current[key] = Thread.current[key].presence || self.default_s...
Tuesday, October 12 2010
5488 default_scope doesn't work at a late point was updated in Ruby on Rails
  • Jan Xie
    • Tag changed from activerecord, default_scope, thread to activerecord, default_scope, patch, thread
    by Jan Xie at 5:45 AM

    Here's a patch with tests.

Sunday, August 29 2010
5488 default_scope doesn't work at a late point was updated in Ruby on Rails
Monday, June 28 2010
4992 new table name set by set_table_name not used by model was updated in Ruby on Rails
  • Jan Xie
    Jan Xie commented at 10:38 AM

    table_name_prefix= and table_name_suffix= have the same problem too.

  • Jan Xie
    • Tag changed from activerecord set_table_name test, rails 3.0.0.beta4, table_name to rails 3.0.0.beta4, table_name
    by Jan Xie at 9:16 AM
  • Jan Xie
    • Tag changed from rails 3.0.0.beta4, table_name to activerecord set_table_name test, rails 3.0.0.beta4, table_name
    by Jan Xie at 9:16 AM